/* ========================================
   GALLERY PAGE STYLES
   ======================================== */

/* Gallery Section - reduce top padding */
.gallery-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--background-cream) 100%);
    padding-top: 40px !important;
}

/* Event Header - Card Style */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-blue);
}

.event-info {
    flex: 1;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.event-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 550px;
    margin: 0;
}

/* Stats - Compact inline style */
.event-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.event-stats .stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--background-cream);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 100px;
}

.event-stats .stat i {
    font-size: 1.25rem;
    color: var(--secondary-coral);
}

.event-stats .stat span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Gallery Subtitles */
.gallery-subtitle {
    margin-bottom: 24px;
}

.gallery-subtitle h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-subtitle h3 i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.videos-subtitle {
    margin-top: 50px;
}

/* Photo Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.7) 0%, rgba(109, 213, 213, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.video-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-caption {
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    background-color: var(--background-cream);
}

/* ========================================
   LIGHTBOX STYLES
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background-color: var(--secondary-coral);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: var(--radius-full);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media screen and (max-width: 1024px) {
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
    }

    .event-stats {
        width: 100%;
    }

    .event-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .gallery-section {
        padding-top: 30px !important;
    }

    .event-header {
        padding: 20px;
        border-left-width: 3px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .event-stats .stat {
        padding: 10px 16px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .gallery-subtitle h3 {
        font-size: 1.1rem;
    }

    .event-title {
        font-size: 1.35rem;
    }

    .event-description {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .event-header {
        padding: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item {
        border-radius: var(--radius-sm);
    }

    .event-stats {
        flex-direction: row;
        gap: 10px;
    }

    .event-stats .stat {
        flex: 1;
        padding: 10px 12px;
        justify-content: center;
    }

    .event-stats .stat i {
        font-size: 1rem;
    }

    .event-stats .stat span {
        font-size: 0.85rem;
    }

    .event-date {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .event-title {
        font-size: 1.25rem;
    }
}

/* No images placeholder */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--background-cream);
    border-radius: var(--radius-lg);
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.gallery-empty p {
    color: var(--text-gray);
    font-size: 1.125rem;
}