/* =============================================================================
   GALLERY PAGES — Expo & Open Day
   ============================================================================= */

/* ── Hero ── */
.gallery-hero {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A2E 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.gallery-hero__overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 50%, rgba(32, 64, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 20%, rgba(32, 64, 129, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.gallery-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
}

.gallery-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(32, 64, 129, 0.15);
    border: 1px solid rgba(32, 64, 129, 0.3);
    color: #4A7ADB;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}

.gallery-hero__badge-dot {
    width: 7px;
    height: 7px;
    background: #204081;
    border-radius: 50%;
}

.gallery-hero__title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.gallery-hero__desc {
    color: #9E9EB0;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.75;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.gallery-hero__count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 8px 24px;
    font-size: 0.85rem;
    color: #9E9EB0;
    font-weight: 500;
}

/* ── Grid Section ── */
.gallery-section {
    background: #FAFAFE;
    padding: 56px 0 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Thumbnails ── */
.gallery-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #E2E2EA;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-thumb__hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.gallery-thumb:hover .gallery-thumb__hover {
    opacity: 1;
}

/* ── Load More ── */
.gallery-load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.gallery-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: transparent;
    color: #204081;
    border: 2px solid #204081;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-load-more:hover {
    background: #204081;
    color: #fff;
}

/* ── Empty State ── */
.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.gallery-empty p {
    color: #6B6B80;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ── Lightbox ── */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-lightbox.is-active {
    display: flex;
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    transition: background 0.2s;
}

.gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox__counter {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    transition: background 0.2s;
}

.gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.gallery-lightbox__nav--prev {
    left: 16px;
}

.gallery-lightbox__nav--next {
    right: 16px;
}

.gallery-lightbox__img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    transition: opacity 0.2s ease;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-hero {
        padding: 80px 0 60px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 0 8px;
    }

    .gallery-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox__nav--prev {
        left: 8px;
    }

    .gallery-lightbox__nav--next {
        right: 8px;
    }

    .gallery-hero {
        padding: 70px 0 50px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
