/* =========================================================
   ADMITH LEGACY — GALLERY PAGE
   File: css/sections/gallery.css
   ========================================================= */


/* =========================================================
   1. GALLERY PAGE FOUNDATION
========================================================= */

.gallery-page {
    --gallery-green: #5bb780;
    --gallery-green-dark: #3f9566;
    --gallery-red: #961414;

    --gallery-black: #0b0b0b;
    --gallery-dark: #111111;
    --gallery-surface: #171717;
    --gallery-surface-light: #f6f7f5;

    --gallery-text: #383838;
    --gallery-muted: #707070;

    --gallery-border: rgba(17, 17, 17, 0.10);
    --gallery-white-border: rgba(255, 255, 255, 0.12);

    --gallery-radius-sm: 12px;
    --gallery-radius-md: 20px;
    --gallery-radius-lg: 28px;
    --gallery-radius-xl: 36px;

    --gallery-shadow:
        0 24px 70px rgba(0, 0, 0, 0.10);

    --gallery-transition:
        400ms cubic-bezier(0.22, 1, 0.36, 1);

    overflow-x: hidden;
    background: #ffffff;
    color: var(--gallery-text);
}


/* =========================================================
   2. HERO
========================================================= */

.gallery-page .gallery-hero {
    position: relative;
    min-height: calc(100svh - 90px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(91, 183, 128, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7faf8 50%,
            #ffffff 100%
        );
}


.gallery-page .gallery-hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(17, 17, 17, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(17, 17, 17, 0.035) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            to right,
            black 0%,
            rgba(0, 0, 0, 0.65) 55%,
            transparent 100%
        );
}


.gallery-page .gallery-hero-background::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: -180px;
    top: 50%;
    transform: translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(91, 183, 128, 0.16),
            transparent 68%
        );

    filter: blur(10px);
}


.gallery-page .gallery-hero-container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, 0.95fr);

    align-items: center;
    gap: clamp(50px, 8vw, 120px);

    padding-top: 100px;
    padding-bottom: 100px;
}


.gallery-page .gallery-hero-content {
    max-width: 720px;
}


.gallery-page .gallery-hero-content .section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;

    color: var(--gallery-green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.gallery-page .gallery-hero-content .section-label::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--gallery-green);
}


.gallery-page .gallery-hero-title {
    margin: 0;

    font-size: clamp(
        3.5rem,
        7vw,
        7.5rem
    );

    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 800;
    color: var(--gallery-black);
}


.gallery-page .gallery-hero-title span {
    display: block;
    color: var(--gallery-green);
}


.gallery-page .gallery-hero-description {
    max-width: 650px;
    margin: 34px 0 0;

    color: var(--gallery-muted);

    font-size: clamp(
        1rem,
        1.5vw,
        1.18rem
    );

    line-height: 1.8;
}


.gallery-page .gallery-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}


/* =========================================================
   3. HERO VISUAL / ORBIT
========================================================= */

.gallery-page .gallery-hero-visual {
    position: relative;

    width: min(100%, 620px);
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-inline: auto;
}


.gallery-page .gallery-hero-core {
    position: relative;
    z-index: 5;

    width: clamp(180px, 35%, 250px);
    aspect-ratio: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 35% 30%,
            #70c896,
            var(--gallery-green-dark)
        );

    box-shadow:
        0 0 0 18px rgba(91, 183, 128, 0.07),
        0 0 0 40px rgba(91, 183, 128, 0.04),
        0 30px 80px rgba(63, 149, 102, 0.25);

    animation:
        gallery-core-float 6s ease-in-out infinite;
}


.gallery-page .gallery-hero-core span {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.75;
}


.gallery-page .gallery-hero-core strong {
    margin: 7px 0;

    font-size: clamp(
        1.7rem,
        4vw,
        2.8rem
    );

    line-height: 1;
    letter-spacing: -0.05em;
}


.gallery-page .gallery-hero-orbit {
    position: absolute;
    inset: 50% auto auto 50%;

    border: 1px solid rgba(91, 183, 128, 0.25);
    border-radius: 50%;

    transform: translate(-50%, -50%);
}


.gallery-page .orbit-one {
    width: 48%;
    height: 48%;

    border-color:
        rgba(91, 183, 128, 0.35);

    animation:
        gallery-orbit-spin 16s linear infinite;
}


.gallery-page .orbit-two {
    width: 72%;
    height: 72%;

    transform:
        translate(-50%, -50%)
        rotate(35deg);

    border-color:
        rgba(91, 183, 128, 0.20);

    animation:
        gallery-orbit-spin-reverse 22s linear infinite;
}


.gallery-page .orbit-three {
    width: 94%;
    height: 94%;

    transform:
        translate(-50%, -50%)
        rotate(-25deg);

    border-color:
        rgba(17, 17, 17, 0.10);

    animation:
        gallery-orbit-spin 30s linear infinite;
}


.gallery-page .gallery-hero-orbit::before,
.gallery-page .gallery-hero-orbit::after {
    content: "";
    position: absolute;

    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: var(--gallery-green);

    box-shadow:
        0 0 0 7px rgba(91, 183, 128, 0.10);
}


.gallery-page .orbit-one::before {
    top: 10%;
    left: 8%;
}


.gallery-page .orbit-two::after {
    right: 5%;
    bottom: 18%;
}


.gallery-page .orbit-three::before {
    top: 22%;
    right: 5%;
}


/* =========================================================
   4. PROJECTS SECTION
========================================================= */

.gallery-page .gallery-projects {
    position: relative;
    padding-top: clamp(100px, 10vw, 160px);
    padding-bottom: clamp(100px, 10vw, 160px);

    background: #ffffff;
}


.gallery-page .gallery-projects::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;

    width: 1px;
    height: 100px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(91, 183, 128, 0.5)
        );
}


.gallery-page .gallery-projects .section-heading {
    max-width: 850px;
    margin-bottom: 70px;
}


.gallery-page .gallery-projects .section-label,
.gallery-page .company-moments .section-label {
    display: inline-block;

    margin-bottom: 16px;

    color: var(--gallery-green-dark);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.gallery-page .gallery-projects .section-title,
.gallery-page .company-moments .section-title {
    margin: 0;

    color: var(--gallery-black);

    font-size: clamp(
        2.5rem,
        5vw,
        5rem
    );

    line-height: 1;
    letter-spacing: -0.055em;
}


.gallery-page .gallery-projects .section-title span,
.gallery-page .company-moments .section-title span {
    color: var(--gallery-green);
}


.gallery-page .gallery-projects .section-description {
    max-width: 680px;
    margin-top: 26px;

    color: var(--gallery-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   5. PROJECT GRID
========================================================= */

.gallery-page .gallery-projects-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: clamp(30px, 4vw, 64px);
}


.gallery-page .gallery-project-card {
    position: relative;
    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--gallery-border);
    border-radius: var(--gallery-radius-lg);

    background: #ffffff;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.035);

    transition:
        transform var(--gallery-transition),
        box-shadow var(--gallery-transition),
        border-color var(--gallery-transition);
}


.gallery-page .gallery-project-card:hover {
    transform: translateY(-10px);

    border-color:
        rgba(91, 183, 128, 0.35);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   6. PROJECT IMAGE
========================================================= */

.gallery-page .gallery-project-image {
    position: relative;

    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #e9ece9;
}


.gallery-page .gallery-project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}


.gallery-page .gallery-project-card:hover
.gallery-project-image img {
    transform: scale(1.07);
}


.gallery-page .gallery-project-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    padding: 24px;

    opacity: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72),
            transparent 55%
        );

    transition:
        opacity var(--gallery-transition);
}


.gallery-page .gallery-project-card:hover
.gallery-project-overlay {
    opacity: 1;
}


.gallery-page .gallery-project-view {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 17px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;

    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 700;

    background:
        rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(12px);
}


.gallery-page .gallery-project-view span {
    font-size: 1rem;
}


/* =========================================================
   7. PROJECT CONTENT
========================================================= */

.gallery-page .gallery-project-content {
    padding: 30px 32px 34px;
}


.gallery-page .gallery-project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;

    color: var(--gallery-muted);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.10em;
    text-transform: uppercase;
}


.gallery-page .gallery-project-meta span:first-child {
    color: var(--gallery-green-dark);
}


.gallery-page .gallery-project-content h3 {
    margin: 0;

    color: var(--gallery-black);

    font-size: clamp(
        1.7rem,
        3vw,
        2.5rem
    );

    line-height: 1.1;
    letter-spacing: -0.04em;
}


.gallery-page .gallery-project-content p {
    margin: 18px 0 0;

    color: var(--gallery-muted);

    font-size: 0.95rem;
    line-height: 1.75;
}


/* =========================================================
   8. COMPANY MOMENTS
========================================================= */

.gallery-page .company-moments {
    position: relative;
    overflow: hidden;

    padding-top: clamp(100px, 10vw, 150px);
    padding-bottom: clamp(100px, 10vw, 150px);

    color: #ffffff;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(91, 183, 128, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(150, 20, 20, 0.08),
            transparent 25%
        ),
        #0b0b0b;
}


.gallery-page .company-moments::before {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 20%,
            black 80%,
            transparent
        );
}


.gallery-page .section-heading-between {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;

    margin-bottom: 70px;
}


.gallery-page .company-moments .section-title {
    color: #ffffff;
}


.gallery-page .company-moments .section-heading-description {
    max-width: 480px;
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 1rem;
    line-height: 1.8;
}


/* =========================================================
   9. CONTINUOUS MOMENTS CAROUSEL
========================================================= */

.gallery-page .moments-carousel {
    position: relative;

    display: flex;
    flex-direction: column;

    gap: 18px;

    width: 100%;
}


.gallery-page .moments-track {
    position: relative;

    width: 100%;
    overflow: hidden;

    padding: 8px 0;
}


.gallery-page .moments-track::before,
.gallery-page .moments-track::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;

    z-index: 3;

    width: 12vw;

    pointer-events: none;
}


.gallery-page .moments-track::before {
    left: 0;

    background:
        linear-gradient(
            to right,
            #0b0b0b,
            transparent
        );
}


.gallery-page .moments-track::after {
    right: 0;

    background:
        linear-gradient(
            to left,
            #0b0b0b,
            transparent
        );
}


.gallery-page .moments-track-inner {
    display: flex;
    width: max-content;

    gap: 18px;

    will-change: transform;
}


.gallery-page .moments-marquee-set {
    display: flex;
    flex: 0 0 auto;

    gap: 18px;
}


.gallery-page .moments-track-left
.moments-track-inner {
    animation:
        moments-scroll-left
        45s
        linear
        infinite;
}


.gallery-page .moments-track-right
.moments-track-inner {
    animation:
        moments-scroll-right
        48s
        linear
        infinite;
}


.gallery-page .moment-image {
    position: relative;

    flex: 0 0 auto;

    width: clamp(
        220px,
        25vw,
        380px
    );

    aspect-ratio: 4 / 3;

    padding: 0;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;

    cursor: pointer;

    background: #171717;

    transition:
        transform var(--gallery-transition),
        border-color var(--gallery-transition);
}


.gallery-page .moment-image:hover {
    transform: translateY(-5px);

    border-color:
        rgba(91, 183, 128, 0.55);
}


.gallery-page .moment-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    opacity: 0.86;

    transition:
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 400ms ease;
}


.gallery-page .moment-image:hover img {
    transform: scale(1.06);
    opacity: 1;
}


/* =========================================================
   10. LIGHTBOX
========================================================= */

.gallery-page .gallery-lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 350ms ease,
        visibility 350ms ease;
}


.gallery-page .gallery-lightbox[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


.gallery-page .gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, 0.94);

    backdrop-filter:
        blur(18px);
}


.gallery-page .gallery-lightbox-content {
    position: relative;
    z-index: 2;

    width: min(
        1100px,
        90vw
    );

    height: min(
        850px,
        90vh
    );

    display: flex;
    align-items: center;
    justify-content: center;
}


.gallery-page .gallery-lightbox-image-wrapper {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 80px;
}


.gallery-page .gallery-lightbox-loader {
    position: absolute;
    z-index: 1;

    top: 50%;
    left: 50%;

    width: 2.75rem;
    height: 2.75rem;

    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--gallery-green);
    border-radius: 50%;

    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    pointer-events: none;

    transition: opacity 180ms ease, transform 180ms ease;
}


.gallery-page .gallery-lightbox.is-loading .gallery-lightbox-loader {
    opacity: 1;
    animation: gallery-lightbox-spin 700ms linear infinite;
}


.gallery-page .gallery-lightbox-image {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.5);

    opacity: 1;
    transform: scale(1);

    transition:
        opacity 220ms ease,
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}


.gallery-page .gallery-lightbox.is-changing .gallery-lightbox-image {
    opacity: 0;
    transform: scale(0.985);
}


body.gallery-lightbox-open {
    overflow: hidden;
    overscroll-behavior: contain;
}


.gallery-page .gallery-lightbox-close,
.gallery-page .gallery-lightbox-prev,
.gallery-page .gallery-lightbox-next {
    position: absolute;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    cursor: pointer;

    backdrop-filter: blur(12px);

    transition:
        background 250ms ease,
        border-color 250ms ease,
        transform 250ms ease;
}


.gallery-page .gallery-lightbox-close:hover,
.gallery-page .gallery-lightbox-prev:hover,
.gallery-page .gallery-lightbox-next:hover {
    border-color:
        rgba(91, 183, 128, 0.8);

    background:
        var(--gallery-green);

    transform: scale(1.08);
}


.gallery-page .gallery-lightbox-close {
    top: 0;
    right: 0;
}


.gallery-page .gallery-lightbox-prev {
    left: 0;
    top: 50%;

    transform: translateY(-50%);
}


.gallery-page .gallery-lightbox-next {
    right: 0;
    top: 50%;

    transform: translateY(-50%);
}


.gallery-page .gallery-lightbox-prev:hover,
.gallery-page .gallery-lightbox-next:hover {
    transform:
        translateY(-50%)
        scale(1.08);
}


.gallery-page .gallery-lightbox-counter {
    position: absolute;
    bottom: 0;
    left: 50%;

    transform: translateX(-50%);

    padding: 9px 16px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;

    background:
        rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(12px);
}


/* =========================================================
   11. ANIMATIONS
========================================================= */

@keyframes gallery-lightbox-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes gallery-core-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


@keyframes gallery-orbit-spin {

    from {
        transform:
            translate(-50%, -50%)
            rotate(0deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}


@keyframes gallery-orbit-spin-reverse {

    from {
        transform:
            translate(-50%, -50%)
            rotate(0deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(-360deg);
    }
}


@keyframes moments-scroll-left {

    from {
        transform: translateX(0);
    }

    to {
        /* Half the track plus the inter-set gap: an exact seamless loop. */
        transform: translateX(calc(-50% - 9px));
    }
}


@keyframes moments-scroll-right {

    from {
        transform: translateX(calc(-50% - 9px));
    }

    to {
        transform: translateX(0);
    }
}


/* =========================================================
   12. ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-page *,
    .gallery-page *::before,
    .gallery-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   13. TABLET
========================================================= */

@media (max-width: 1100px) {

    .gallery-page .gallery-hero-container {
        grid-template-columns:
            1fr;

        text-align: center;
    }


    .gallery-page .gallery-hero-content {
        margin-inline: auto;
    }


    .gallery-page .gallery-hero-content .section-label {
        justify-content: center;
    }


    .gallery-page .gallery-hero-description {
        margin-inline: auto;
    }


    .gallery-page .gallery-hero-actions {
        justify-content: center;
    }


    .gallery-page .gallery-hero-visual {
        width: min(80vw, 500px);
    }


    .gallery-page .section-heading-between {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   14. MOBILE
========================================================= */

@media (max-width: 768px) {

    .gallery-page .gallery-hero {
        min-height: auto;
    }


    .gallery-page .gallery-hero-container {
        padding-top: 80px;
        padding-bottom: 80px;

        gap: 60px;
    }


    .gallery-page .gallery-hero-title {
        font-size: clamp(
            3rem,
            15vw,
            5rem
        );
    }


    .gallery-page .gallery-hero-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    .gallery-page .gallery-hero-visual {
        width: min(90vw, 430px);
    }


    .gallery-page .gallery-projects-grid {
        grid-template-columns: 1fr;
    }


    .gallery-page .gallery-project-content {
        padding: 26px 24px 30px;
    }


    .gallery-page .gallery-project-overlay {
        opacity: 1;

        padding: 18px;
    }


    .gallery-page .gallery-project-view {
        font-size: 0.72rem;
        padding: 10px 14px;
    }


    .gallery-page .section-heading-between {
        margin-bottom: 50px;
    }


    .gallery-page .company-moments
    .section-title {
        font-size: clamp(
            2.7rem,
            12vw,
            4rem
        );
    }


    .gallery-page .moment-image {
        width: 250px;
    }


    .gallery-page .gallery-lightbox {
        padding: 20px;
    }


    .gallery-page .gallery-lightbox-content {
        width: 100%;
        height: 80vh;
    }


    .gallery-page .gallery-lightbox-image-wrapper {
        padding: 50px 45px;
    }


    .gallery-page .gallery-lightbox-close,
    .gallery-page .gallery-lightbox-prev,
    .gallery-page .gallery-lightbox-next {
        width: 44px;
        height: 44px;
    }

}


/* =========================================================
   15. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-page .gallery-hero-container {
        padding-top: 60px;
        padding-bottom: 60px;
    }


    .gallery-page .gallery-hero-title {
        font-size: 3rem;
    }


    .gallery-page .gallery-hero-actions {
        flex-direction: column;
        width: 100%;
    }


    .gallery-page .gallery-hero-actions .btn {
        width: 100%;
    }


    .gallery-page .gallery-project-content {
        padding: 24px 20px 28px;
    }


    .gallery-page .gallery-project-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }


    .gallery-page .moment-image {
        width: 220px;
    }


    .gallery-page .gallery-lightbox-image-wrapper {
        padding: 60px 10px;
    }


    .gallery-page .gallery-lightbox-prev {
        left: 5px;
    }


    .gallery-page .gallery-lightbox-next {
        right: 5px;
    }

}


/* =========================================================
   GALLERY HERO — COMPANY MOMENTS BUTTON FIX
========================================================= */

.gallery-page .gallery-hero-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 14px 26px;

    border: 1px solid rgba(17, 17, 17, 0.18);
    border-radius: 999px;

    color: #111111;
    background: rgba(255, 255, 255, 0.75);

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        color 300ms ease,
        background-color 300ms ease,
        border-color 300ms ease,
        transform 300ms ease,
        box-shadow 300ms ease;
}


/* Hover State */

.gallery-page .gallery-hero-actions .btn-secondary:hover {
    color: #ffffff;
    background: #111111;

    border-color: #111111;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15);
}


/* Keyboard Focus */

.gallery-page .gallery-hero-actions .btn-secondary:focus-visible {
    outline: 3px solid rgba(91, 183, 128, 0.35);
    outline-offset: 4px;
}


/* Mobile */

@media (max-width: 480px) {

    .gallery-page .gallery-hero-actions .btn-secondary {
        width: 100%;
        min-height: 54px;
    }

}
