/* =====================================================================
   EDGE FITNESS : GALLERY PAGE STYLES (CONCEPT 2 - MODERN ATHLETIC)
   Brand: EDGE FITNESS | Luxury, Bold, Athletic, Modern & Cinematic
   Color Palette:
     - Primary Gold: #E6A21A (var(--gal-gold))
     - Secondary Gold: #C58A13
     - Black: #151515
     - Dark Background: #202020
     - White: #FFFFFF
     - Light Background: #F8F8F8
     - Red Accent: #F0202D
     - Secondary Text: #777777
   ===================================================================== */

:root {
    --gal-gold: #E6A21A;
    --gal-gold-deep: #C58A13;
    --gal-gold-line: rgba(230, 162, 26, 0.4);
    --gal-red: #F0202D;
    --gal-black: #151515;
    --gal-charcoal: #202020;
    --gal-offwhite: #F8F8F8;
    --gal-muted: #777777;
}

/* =====================================================================
   1. HERO SECTION – GALLERY BANNER
   ===================================================================== */
.gallery-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 260px;
    padding: calc(var(--topbar-h, 44px) + var(--hdr-h, 84px) + 2.5rem) 1.5rem 3.5rem;
    background-color: var(--gal-black);
    background-image:
        radial-gradient(ellipse at center, rgba(21, 21, 21, 0.72) 0%, rgba(21, 21, 21, 0.94) 85%),
        linear-gradient(180deg, rgba(21, 21, 21, 0.85) 0%, rgba(21, 21, 21, 0.96) 100%),
        url('../assets/images/barbell-on-the-floor.jpg');
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(230, 162, 26, 0.25);
}

/* Diagonal Gold Decorative Lines on Both Sides */
.gallery-hero::before,
.gallery-hero::after {
    content: "";
    position: absolute;
    top: -20%;
    width: 2px;
    height: 140%;
    background: linear-gradient(180deg, transparent, var(--gal-gold), transparent);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
}

.gallery-hero::before {
    left: 8%;
    transform: rotate(26deg);
}

.gallery-hero::after {
    right: 8%;
    transform: rotate(-26deg);
}

.gallery-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.gallery-hero__title {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.8rem, 6.5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: 0.08em;
    color: var(--text-white, #FFFFFF);
    text-transform: uppercase;
    margin: 0 0 0.85rem;
}

.gallery-hero__title .gold {
    color: var(--gal-gold);
    text-shadow: 0 0 25px rgba(230, 162, 26, 0.35);
}

.gallery-hero__crumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-silver, #B8B8B8);
}

.gallery-hero__crumbs a {
    color: var(--text-white, #FFFFFF);
    transition: color 0.3s ease;
}

.gallery-hero__crumbs a:hover {
    color: var(--gal-gold);
}

.gallery-hero__crumbs .sep {
    color: var(--gal-gold);
    font-weight: 400;
}

.gallery-hero__crumbs .current {
    color: var(--gal-gold);
}

/* =====================================================================
   2. GALLERY INTRODUCTION – TWO-COLUMN SPLIT-SCREEN
   ===================================================================== */
.gallery-intro {
    background-color: #FFFFFF;
    color: var(--light-text, #111111);
    position: relative;
    padding: clamp(5rem, 8.5vw, 8rem) 0;
    overflow: hidden;
}

.gallery-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gal-charcoal);
    margin-bottom: 0.9rem;
}

.gallery-intro__eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 3px;
    background: var(--gal-gold);
}

.gallery-intro__title {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--light-text, #111111);
    margin: 0;
}

.gallery-intro__title .gold {
    color: var(--gal-gold-deep);
    display: inline;
}

.gallery-intro__line {
    width: 68px;
    height: 4px;
    background: var(--gal-gold);
    margin: 1.4rem 0 1.8rem;
    border-radius: 1px;
}

.gallery-intro__desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gal-muted, #777777);
    margin-bottom: 2.25rem;
}

/* Angular Image Framing with Red Accent & Gold Outline */
.gallery-intro-frame {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 1.25rem;
}

/* Red decorative shape behind left edge */
.gallery-intro-frame__red-bg {
    position: absolute;
    top: 2rem;
    right: 0;
    bottom: -1rem;
    left: 2.2rem;
    background-color: var(--gal-red);
    z-index: 0;
    transition: transform 0.4s ease;
}

/* Thin gold angular border offset */
.gallery-intro-frame__gold-border {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 2.2rem);
    height: calc(100% - 1.25rem);
    border: 2px solid var(--gal-gold);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.4s ease;
}

/* Image wrapper */
.gallery-intro-frame__img-wrap {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--gal-black);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.gallery-intro-frame__img-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.65s var(--ease-smooth, ease);
}

.gallery-intro-frame:hover .gallery-intro-frame__img-wrap img {
    transform: scale(1.04);
}

.gallery-intro-frame:hover .gallery-intro-frame__red-bg {
    transform: translate(4px, 4px);
}

.gallery-intro-frame:hover .gallery-intro-frame__gold-border {
    transform: translate(-3px, -3px);
}

/* =====================================================================
   3. CATEGORY NAVIGATION FILTER BAR (ANGULAR FULL-WIDTH)
   ===================================================================== */
.gallery-nav-sec {
    position: relative;
    background: var(--gal-black);
    color: var(--text-white, #FFFFFF);
    padding: 1.75rem 0;
    clip-path: polygon(0 1.2vw, 100% 0, 100% calc(100% - 1.2vw), 0 100%);
    margin: -1rem 0;
    z-index: 3;
    border-top: 1px solid rgba(230, 162, 26, 0.3);
    border-bottom: 1px solid rgba(230, 162, 26, 0.3);
}

.gallery-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth, ease);
    white-space: nowrap;
}

.gallery-filter-btn:hover {
    color: var(--gal-gold);
    border-color: var(--gal-gold);
    background: rgba(230, 162, 26, 0.08);
}

.gallery-filter-btn.is-active {
    background: var(--gal-gold);
    color: #111111;
    border-color: var(--gal-gold);
    box-shadow: 0 4px 16px rgba(230, 162, 26, 0.35);
}

/* Subtle separator between filters on desktop */
.gallery-filter-item:not(:last-child) {
    position: relative;
}

/* =====================================================================
   4. MAIN GALLERY GRID & ITEMS
   ===================================================================== */
.gallery-grid-sec {
    background-color: var(--gal-offwhite);
    color: var(--light-text, #111111);
    position: relative;
    padding: clamp(5rem, 8.5vw, 8rem) 0;
    overflow: hidden;
}

/* Subtle background watermark */
.gallery-grid-sec::before {
    content: "GALLERY";
    position: absolute;
    right: -2vw;
    bottom: -4vw;
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(8rem, 20vw, 20rem);
    line-height: 1;
    color: rgba(21, 21, 21, 0.025);
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.gallery-grid-sec .container {
    position: relative;
    z-index: 1;
}

/* Section Header */
.gallery-grid__head {
    text-align: center;
    margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

.gallery-grid__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gal-gold-deep);
    margin-bottom: 0.85rem;
}

.gallery-grid__eyebrow::before,
.gallery-grid__eyebrow::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--gal-gold);
}

.gallery-grid__title {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--light-text, #111111);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
}

.gallery-grid__title::before,
.gallery-grid__title::after {
    content: "";
    display: inline-block;
    width: clamp(30px, 6vw, 60px);
    height: 3px;
    background: var(--gal-gold);
    vertical-align: middle;
}

.gallery-grid__title .gold {
    color: var(--gal-gold-deep);
}

/* 3-Column Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* Individual Gallery Item Card */
.gallery-item {
    position: relative;
    height: 320px;
    background: var(--gal-black);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.4s var(--ease-smooth, ease),
                box-shadow 0.4s var(--ease-smooth, ease),
                border-color 0.4s var(--ease-smooth, ease),
                opacity 0.4s var(--ease-smooth, ease);
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item.fade-in {
    animation: galFadeIn 0.4s ease forwards;
}

@keyframes galFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--gal-gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), 0 0 20px rgba(230, 162, 26, 0.2);
}

/* Image Element */
.gallery-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.65s var(--ease-smooth, ease);
}

.gallery-item:hover .gallery-item__img {
    transform: scale(1.08);
}

/* Hover Dark Translucent Overlay */
.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(21, 21, 21, 0.15) 0%,
        rgba(21, 21, 21, 0.6) 55%,
        rgba(21, 21, 21, 0.95) 100%
    );
    opacity: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

/* Category Badge in Top-Right */
.gallery-item__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(21, 21, 21, 0.85);
    color: var(--gal-gold);
    border: 1px solid var(--gal-gold);
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Center Zoom Icon */
.gallery-item__zoom-icon {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    font-size: 1.8rem;
    color: #FFFFFF;
    background: rgba(230, 162, 26, 0.9);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover .gallery-item__zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Title at Bottom of Overlay */
.gallery-item__title {
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-item__title {
    transform: translateY(0);
}

/* Bottom Gold Accent Bar */
.gallery-item__accent-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--gal-gold);
    z-index: 3;
    transition: width 0.4s var(--ease-smooth, ease);
}

.gallery-item:hover .gallery-item__accent-bar {
    width: 100%;
}

/* =====================================================================
   5. LIGHTBOX MODAL (TOUCH-FRIENDLY & ACCESSIBLE)
   ===================================================================== */
.gal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(9, 10, 12, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gal-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gal-lightbox__dialog {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gal-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 162, 26, 0.15);
    border: 1px solid rgba(230, 162, 26, 0.3);
    transition: transform 0.25s ease;
}

.gal-lightbox__info {
    margin-top: 1rem;
    text-align: center;
    color: #FFFFFF;
}

.gal-lightbox__caption {
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gal-gold);
    margin: 0 0 0.25rem;
}

.gal-lightbox__count {
    font-size: 0.82rem;
    color: var(--text-silver, #B8B8B8);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Lightbox Controls */
.gal-lightbox__btn {
    position: absolute;
    background: rgba(21, 21, 21, 0.75);
    color: #FFFFFF;
    border: 1px solid var(--gal-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gal-lightbox__btn:hover {
    background: var(--gal-gold);
    color: #111111;
    transform: scale(1.1);
}

.gal-lightbox__close {
    top: 1.5rem;
    right: 1.5rem;
}

.gal-lightbox__prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.gal-lightbox__prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.gal-lightbox__next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.gal-lightbox__next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* =====================================================================
   6. GALLERY STATISTICS STRIP (ANGULAR FULL-WIDTH)
   ===================================================================== */
.gallery-stats {
    position: relative;
    background: var(--gal-black);
    color: #FFFFFF;
    padding: clamp(5.5rem, 8.5vw, 7.5rem) 0;
    clip-path: polygon(0 3.2vw, 100% 0, 100% calc(100% - 3.2vw), 0 100%);
    margin: -1.5rem 0;
    z-index: 3;
    overflow: hidden;
}

.gallery-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(230, 162, 26, 0.08), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(240, 32, 45, 0.06), transparent 50%),
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    pointer-events: none;
}

.gallery-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 1;
}

.gallery-stat-item {
    position: relative;
    text-align: center;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.gallery-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gal-gold-line), transparent);
}

.gallery-stat-item__icon {
    font-size: 2.2rem;
    color: var(--gal-gold);
    margin-bottom: 0.85rem;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-stat-item:hover .gallery-stat-item__icon {
    transform: translateY(-4px) scale(1.1);
    filter: drop-shadow(0 0 12px rgba(230, 162, 26, 0.6));
}

.gallery-stat-item__num {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1;
    color: var(--gal-gold);
    margin-bottom: 0.4rem;
    text-shadow: 0 0 20px rgba(230, 162, 26, 0.25);
}

.gallery-stat-item__label {
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-white, #FFFFFF);
    margin: 0;
    line-height: 1.35;
}

/* =====================================================================
   7. COMMUNITY CTA SECTION
   ===================================================================== */
.gallery-cta {
    position: relative;
    background-color: var(--gal-black);
    background-image:
        radial-gradient(circle at center, rgba(21, 21, 21, 0.7) 0%, rgba(21, 21, 21, 0.95) 90%),
        url('../assets/images/trainer-cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: clamp(5rem, 8vw, 7.5rem) 1.5rem;
    border-top: 1px solid rgba(230, 162, 26, 0.25);
    overflow: hidden;
    isolation: isolate;
}

/* Diagonal Gold Separator Lines */
.gallery-cta::before,
.gallery-cta::after {
    content: "";
    position: absolute;
    top: -30%;
    width: 2px;
    height: 160%;
    background: linear-gradient(180deg, transparent, var(--gal-gold-line), transparent);
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

.gallery-cta::before {
    left: 14%;
    transform: rotate(22deg);
}

.gallery-cta::after {
    right: 14%;
    transform: rotate(-22deg);
}

/* Athlete Left & Right Images */
.gallery-cta__athlete-left,
.gallery-cta__athlete-right {
    position: absolute;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    max-height: 420px;
    height: 90%;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
    transition: transform 0.5s ease;
}

.gallery-cta__athlete-left {
    left: 3%;
}

.gallery-cta__athlete-right {
    right: 3%;
}

.gallery-cta__athlete-left img,
.gallery-cta__athlete-right img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom;
}

.gallery-cta__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.gallery-cta__title {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 1.25rem;
}

.gallery-cta__title .gold {
    color: var(--gal-gold);
}

.gallery-cta__sub {
    font-size: 1.08rem;
    color: var(--text-silver, #B8B8B8);
    max-width: 580px;
    margin: 0 auto 2.25rem;
    line-height: 1.7;
}

/* =====================================================================
   8. RESPONSIVE DESIGN BREAKPOINTS
   ===================================================================== */
@media (max-width: 1199.98px) {
    .gallery-item {
        height: 290px;
    }

    .gallery-cta__athlete-left,
    .gallery-cta__athlete-right {
        max-height: 350px;
        opacity: 0.75;
    }
}

@media (max-width: 991.98px) {
    .gallery-hero {
        min-height: 230px;
        padding-top: calc(var(--hdr-h, 84px) + 2rem);
    }

    .gallery-hero::before,
    .gallery-hero::after {
        opacity: 0.3;
    }

    /* 2 columns on tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-item {
        height: 280px;
    }

    .gallery-stats {
        clip-path: polygon(0 2.5vw, 100% 0, 100% calc(100% - 2.5vw), 0 100%);
    }

    .gallery-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0;
    }

    .gallery-stat-item:nth-child(2)::after {
        display: none;
    }

    .gallery-stat-item:not(:last-child)::after {
        top: 20%;
        height: 60%;
    }

    .gallery-intro-frame {
        margin-top: 2.5rem;
    }

    .gallery-cta__athlete-left,
    .gallery-cta__athlete-right {
        max-height: 280px;
        opacity: 0.5;
    }
}

@media (max-width: 767.98px) {
    .gallery-hero {
        min-height: 200px;
        padding-bottom: 2.5rem;
    }

    /* Horizontal scrollable category filters on mobile */
    .gallery-nav-sec {
        clip-path: none;
        margin: 0;
        padding: 1.25rem 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 0.5rem;
        width: max-content;
    }

    .gallery-filter-btn {
        padding: 0.6rem 1.15rem;
        font-size: 0.76rem;
    }

    /* 1 column on mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gallery-item {
        height: 270px;
    }

    .gallery-grid__title::before,
    .gallery-grid__title::after {
        display: none;
    }

    .gallery-stats {
        clip-path: none;
        margin: 0;
        padding: 4rem 0;
    }

    .gallery-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 0.5rem;
    }

    .gallery-stat-item:not(:last-child)::after {
        display: none;
    }

    .gallery-stat-item {
        padding: 0.75rem 0.5rem;
    }

    .gallery-stat-item__icon {
        font-size: 1.8rem;
    }

    .gallery-stat-item__num {
        font-size: 2.2rem;
    }

    .gallery-stat-item__label {
        font-size: 0.76rem;
    }

    .gallery-intro-frame {
        max-width: 100%;
        padding: 0.75rem;
    }

    .gallery-intro-frame__red-bg {
        left: 1.5rem;
        top: 1.5rem;
    }

    .gallery-intro-frame__gold-border {
        width: calc(100% - 1.5rem);
    }

    .gal-lightbox__prev,
    .gal-lightbox__next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gal-lightbox__close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Hide background athletes on mobile to prevent overlapping */
    .gallery-cta__athlete-left,
    .gallery-cta__athlete-right {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item__img,
    .gallery-item__overlay,
    .gallery-item__zoom-icon,
    .gallery-filter-btn,
    .gallery-intro-frame img {
        transition: none !important;
        transform: none !important;
    }
}
