#gallery-page {
    width: 100%;
    background: #FFFFFF;
    position: relative;
}

/* ============================
   GALLERY HERO
============================ */
.gl-hero {
    width: 100%;
    background: #002148;
    padding: 60px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.gl-hero-eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #F47A20;
    margin-bottom: 12px;
}

.gl-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 130%;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.gl-highlight {
    color: #FDD01E;
}

.gl-hero-desc {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 156%;
    color: #D8DEE8;
    max-width: 500px;
    margin: 0 auto;
}

.gl-hero-decor {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,122,32,0.15) 0%, rgba(244,122,32,0) 70%);
    z-index: 1;
}

/* ============================
   FILTER ROW
============================ */
.gl-filter-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 5% 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.gl-filter-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 24px);
    color: #002148;
    margin-bottom: 6px;
}

.gl-filter-desc {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    color: #5C616E;
}

.gl-filter-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #E5E5E5;
}

.gl-tab {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    color: #5C616E;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.gl-tab--active,
.gl-tab.gl-tab--active {
    color: #F47A20;
    border-bottom-color: #F47A20;
}

/* ============================
   PHOTO MASONRY GRID
============================ */
.gl-gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 340px;
    grid-auto-flow: dense;
    gap: 20px;
}

.gl-photo {
    background: #FDE9D7;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(244, 122, 32, 0.25);
}

.gl-photo--wide {
    grid-column: span 2;
}

.gl-photo--square {
    grid-row: span 1;
    grid-column: span 1;
}

@media (max-width: 900px) {
    .uh-navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 5%;
        gap: 16px;
    }

    .uh-nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .gl-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }

    .gl-photo--wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .gl-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gl-photo--tall,
    .gl-photo--wide,
    .gl-photo--square {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4/3;
        height: auto;
    }

    .gl-filter-tabs {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .uh-nav-right {
        gap: 12px;
    }

    .uh-login-link span {
        display: none;
    }

    .uh-volunteer-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .gl-hero-decor {
        display: none;
    }
}

/* The "All" tab always shows its photos immediately — no animation at
   all, ever, on page load or when switching back to it from another
   tab. This overrides .uh-navbar ~ * (css/shared.css), a site-wide
   "fade the page content in on load" animation that also replays
   whenever an element toggles from display:none back to visible,
   which is exactly what happens each time the All tab is re-shown. */
.gl-gallery-grid[data-tab-group="all"] {
    animation: none;
}

/* ============================
   GALLERY PHOTO GRID "POP" REVEAL
   A punchier alternative to the site-wide fade+slide scroll-reveal
   (css/scroll-reveal.css) — used only for the gallery photo grids
   (all four tabs), scaling up from slightly-small + faded with a bit
   of bounce, instead of sliding up. Wired up in script.js via
   initScrollReveal(els, 'gl-scroll-pop--visible') so it shares the
   same "already on screen? show it instantly" / IntersectionObserver
   logic as the rest of the site, just with this look instead.
============================ */
.gl-scroll-pop {
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.gl-scroll-pop--visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .gl-scroll-pop {
        opacity: 1;
        transform: none;
        transition: none;
    }
}