/* ============================================
   HUMANITY FOUNDATION | GALLERY V2
   New curated gallery layout. Shared navbar/footer untouched.
============================================ */
.gallery-page {
    --gallery-navy: #14213f;
    --gallery-red: #d92336;
    --gallery-yellow: #fff000;
    --gallery-muted: #7b8492;
    --gallery-cream: #fffdf5;
    background: var(--gallery-cream);
    color: var(--gallery-navy);
    font-family: "DM Sans", Arial, sans-serif
}

.gallery-page * {
    box-sizing: border-box
}

.gallery-page main {
    overflow: hidden
}

.gallery-page a {
    text-decoration: none
}

/* Hero */
.gallery-hero {
    width: min(1440px, calc(100% - 36px));
    min-height: clamp(380px, 43vw, 550px);
    margin: 20px auto 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    background: #17233b;
    box-shadow: 0 20px 55px rgba(20, 33, 63, .12)
}

.gallery-hero-photo,
.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.gallery-hero-photo {
    z-index: -2;
    object-fit: cover;
    object-position: center 42%;
    transition: transform 1s ease
}

.gallery-hero:hover .gallery-hero-photo {
    transform: scale(1.025)
}

.gallery-hero-overlay {
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 17, 35, .86) 0%, rgba(8, 17, 35, .65) 42%, rgba(8, 17, 35, .10) 100%)
}

.gallery-hero-copy {
    width: min(650px, 72%);
    padding: 65px clamp(28px, 6vw, 82px);
    color: #fff
}

.gallery-kicker,
.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gallery-yellow);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.8px
}

.gallery-kicker i,
.gallery-eyebrow i {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--gallery-yellow)
}

.gallery-hero h1 {
    margin: 18px 0 16px;
    font: 700 clamp(42px, 5.6vw, 73px)/1.02 "Playfair Display", Georgia, serif;
    letter-spacing: -1.3px
}

.gallery-hero h1 em {
    color: var(--gallery-yellow);
    font-style: normal
}

.gallery-hero-copy>p {
    max-width: 480px;
    margin: 0;
    color: rgba(255, 255, 255, .83);
    font-size: 14px;
    line-height: 1.8
}

.gallery-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 13px 21px;
    border-radius: 999px;
    background: var(--gallery-yellow);
    color: #141a29;
    font-size: 15px;
    font-weight: 800;
    transition: transform .2s, box-shadow .2s
}

.gallery-hero-cta:hover {
    color: #141a29;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 240, 0, .2)
}

.gallery-hero-count {
    position: absolute;
    right: 28px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 17px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 15px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px);
    color: #fff
}

.gallery-hero-count strong {
    font: 700 31px "Playfair Display", Georgia, serif;
    color: var(--gallery-yellow)
}

.gallery-hero-count span {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .6px
}

.gallery-hero-count>i {
    margin-left: 4px;
    font-size: 20px
}

/* Intro */
.gallery-intro-band {
    padding: 76px 24px 31px
}

.gallery-intro-inner {
    width: min(1240px, 100%);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px
}

.gallery-eyebrow {
    color: var(--gallery-red);
    font-size: 15px;
    letter-spacing: 1.7px
}

.gallery-eyebrow i {
    background: var(--gallery-red);
    width: 21px
}

.gallery-intro-inner h2 {
    margin: 13px 0 9px;
    color: var(--gallery-navy);
    font: 700 clamp(31px, 4vw, 47px)/1.08 "Playfair Display", Georgia, serif;
    letter-spacing: -.7px
}

.gallery-intro-inner h2 em {
    color: var(--gallery-red);
    font-style: normal
}

.gallery-intro-inner p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 12px;
    line-height: 1.7
}

.gallery-search-box {
    width: min(340px, 100%);
    height: 48px;
    flex: 0 0 min(340px, 100%);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border: 1px solid #e9e5d9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 33, 63, .045);
    transition: border-color .2s, box-shadow .2s
}

.gallery-search-box:focus-within {
    border-color: var(--gallery-red);
    box-shadow: 0 0 0 4px rgba(217, 35, 54, .08)
}

.gallery-search-box>i {
    color: var(--gallery-red)
}

.gallery-search-box input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gallery-navy);
    font: 500 15px "DM Sans", sans-serif
}

.gallery-search-box button {
    border: 0;
    background: transparent;
    color: var(--gallery-red);
    cursor: pointer
}

/* Browser with dedicated activity rail */
.gallery-browser {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto 85px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
    align-items: start
}

.gallery-sidebar {
    position: sticky;
    top: 112px;
    padding: 22px 17px;
    border: 1px solid #eee9dc;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 33, 63, .045)
}

.gallery-sidebar-heading {
    padding: 0 8px 16px;
    border-bottom: 1px solid #f0ede5
}

.gallery-sidebar-heading>span,
.gallery-content-label {
    color: var(--gallery-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px
}

.gallery-sidebar-heading h2 {
    margin: 7px 0 0;
    font: 700 22px "Playfair Display", Georgia, serif;
    color: var(--gallery-navy)
}

.gallery-filters {
    display: grid;
    gap: 6px;
    padding-top: 13px
}

.gallery-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 43px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #596477;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s
}

.gallery-filter i {
    width: 20px;
    color: #9aa1ac;
    font-size: 14px
}

.gallery-filter b {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f3f1e9;
    color: #747d8b;
    font-size: 9px
}

.gallery-filter:hover {
    background: #fff8d9;
    color: var(--gallery-navy)
}

.gallery-filter:hover i {
    color: var(--gallery-red)
}

.gallery-filter.is-active {
    background: #fff6b5;
    color: var(--gallery-navy);
    border-color: #fff0a0
}

.gallery-filter.is-active i {
    color: var(--gallery-red)
}

.gallery-filter.is-active b {
    background: var(--gallery-yellow);
    color: #202638
}

.gallery-sidebar-note {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 10px;
    border-radius: 12px;
    background: #f7f8fa;
    color: #78808e
}

.gallery-sidebar-note i {
    color: var(--gallery-red);
    font-size: 17px
}

.gallery-sidebar-note p {
    margin: 0;
    font-size: 9px;
    line-height: 1.6
}

/* Photo cards */
.gallery-content {
    min-width: 0
}

.gallery-content-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 17px
}

.gallery-content-top h2 {
    margin: 6px 0 0;
    color: var(--gallery-navy);
    font: 700 25px "Playfair Display", Georgia, serif
}

.gallery-content-top p {
    margin: 0 0 3px;
    color: var(--gallery-muted);
    font-size: 10px
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 15px
}

.gallery-card {
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eee9df;
    border-radius: 15px;
    background: #fff;
    text-align: left;
    cursor: zoom-in;
    box-shadow: 0 5px 17px rgba(20, 33, 63, .045);
    transition: transform .25s, box-shadow .25s, border-color .25s
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: #e7dfc9;
    box-shadow: 0 15px 30px rgba(20, 33, 63, .11)
}

.gallery-card:focus-visible {
    outline: 3px solid var(--gallery-red);
    outline-offset: 3px
}

.gallery-card-media {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0eee7
}

.gallery-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease
}

.gallery-card:hover .gallery-card-media img {
    transform: scale(1.055)
}

.gallery-card-open {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(16, 27, 47, .45);
    backdrop-filter: blur(8px);
    color: #fff;
    opacity: 0;
    transform: translateY(5px);
    transition: .2s
}

.gallery-card:hover .gallery-card-open,
.gallery-card:focus-visible .gallery-card-open {
    opacity: 1;
    transform: none
}

.gallery-card-info {
    display: grid;
    gap: 6px;
    padding: 12px 13px 14px
}

.gallery-card-category {
    color: var(--gallery-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase
}

.gallery-card-title {
    display: -webkit-box;
    overflow: hidden;
    color: #26324a;
    font: 600 12px/1.45 "DM Sans", sans-serif;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
}

.gallery-card.is-broken .gallery-card-media {
    display: grid;
    place-items: center;
    color: #8a91a0
}

.gallery-card.is-broken .gallery-card-media::after {
    content: "Photo unavailable";
    font-size: 10px
}

.gallery-empty {
    padding: 60px 20px;
    border: 1px dashed #ddd7c8;
    border-radius: 17px;
    background: #fff;
    text-align: center
}

.gallery-empty[hidden] {
    display: none !important
}

.gallery-empty>span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: #fff4bf;
    color: var(--gallery-red);
    font-size: 21px
}

.gallery-empty h3 {
    font: 700 23px "Playfair Display", Georgia, serif;
    color: var(--gallery-navy)
}

.gallery-empty p {
    color: var(--gallery-muted);
    font-size: 11px
}

.gallery-empty button {
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--gallery-yellow);
    color: #171b28;
    font-size: 10px;
    font-weight: 800
}

/* Bottom CTA */
.gallery-join-cta {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto 90px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px 30px;
    border: 1px solid #eee7d5;
    border-radius: 18px;
    background: linear-gradient(110deg, #fff8d7, #fff 82%);
    box-shadow: 0 8px 25px rgba(20, 33, 63, .035)
}

.gallery-join-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff0ef;
    color: var(--gallery-red);
    font-size: 18px
}

.gallery-join-copy {
    flex: 1
}

.gallery-join-copy>span {
    color: var(--gallery-red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px
}

.gallery-join-copy h2 {
    margin: 5px 0;
    color: var(--gallery-navy);
    font: 700 24px "Playfair Display", Georgia, serif
}

.gallery-join-copy p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 10px
}

.gallery-join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

.gallery-join-primary,
.gallery-join-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 15px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    transition: .2s
}

.gallery-join-primary {
    background: var(--gallery-yellow);
    color: #171b28
}

.gallery-join-primary:hover {
    color: #171b28;
    transform: translateY(-2px)
}

.gallery-join-secondary {
    border: 1px solid #e6e0d2;
    background: #fff;
    color: var(--gallery-navy)
}

.gallery-join-secondary:hover {
    border-color: var(--gallery-red);
    color: var(--gallery-red)
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 80px 80px 35px;
    background: rgba(7, 13, 26, .96);
    backdrop-filter: blur(12px)
}

.gallery-lightbox.is-open {
    display: flex
}

.lightbox-toolbar {
    position: absolute;
    top: 18px;
    left: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.lightbox-brand {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px
}

.lightbox-brand small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .55);
    font-size: 8px
}

.lightbox-tools {
    display: flex;
    align-items: center;
    gap: 8px
}

.lightbox-tool,
.lightbox-close,
.lightbox-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 42px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
    cursor: pointer
}

.lightbox-close {
    border-radius: 50%
}

.lightbox-tool:hover,
.lightbox-close:hover,
.lightbox-arrow:hover {
    background: var(--gallery-red);
    color: #fff
}

.lightbox-figure {
    width: min(100%, 1100px);
    margin: 0;
    text-align: center
}

.lightbox-image-frame {
    height: min(76vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.lightbox-image-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: transform .3s
}

.lightbox-image-frame img.is-zoomed {
    transform: scale(1.7);
    cursor: zoom-out
}

.lightbox-figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 5px;
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    text-align: left
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    padding: 0;
    transform: translateY(-50%);
    font-size: 17px
}

.lightbox-prev {
    left: 20px
}

.lightbox-next {
    right: 20px
}

.lightbox-arrow:disabled {
    opacity: .3;
    cursor: not-allowed
}

.gallery-page.modal-open {
    overflow: hidden
}

@media(max-width:1050px) {
    .gallery-browser {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 20px
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .gallery-card-media {
        aspect-ratio: 5/4
    }
}

@media(max-width:760px) {
    .gallery-hero {
        width: calc(100% - 24px);
        min-height: 420px;
        margin-top: 13px;
        border-radius: 17px;
        align-items: flex-end
    }

    .gallery-hero-overlay {
        background: linear-gradient(0deg, rgba(8, 17, 35, .92), rgba(8, 17, 35, .45) 78%, rgba(8, 17, 35, .16))
    }

    .gallery-hero-copy {
        width: 100%;
        padding: 38px 23px 86px
    }

    .gallery-hero h1 {
        font-size: clamp(39px, 10vw, 55px)
    }

    .gallery-hero-copy>p {
        font-size: 12px
    }

    .gallery-hero-count {
        right: 13px;
        bottom: 12px;
        padding: 9px 12px
    }

    .gallery-hero-count strong {
        font-size: 24px
    }

    .gallery-intro-band {
        padding: 53px 18px 22px
    }

    .gallery-intro-inner {
        display: grid;
        gap: 20px
    }

    .gallery-intro-inner h2 {
        font-size: 34px
    }

    .gallery-search-box {
        width: 100%;
        flex-basis: auto
    }

    .gallery-browser {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
        gap: 17px;
        margin-bottom: 55px
    }

    .gallery-sidebar {
        position: static;
        padding: 14px 13px;
        border-radius: 14px
    }

    .gallery-sidebar-heading {
        padding: 0 3px 9px;
        border: 0
    }

    .gallery-sidebar-heading h2 {
        font-size: 18px
    }

    .gallery-filters {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding: 5px 1px 7px;
        scrollbar-width: thin
    }

    .gallery-filter {
        width: auto;
        flex: 0 0 auto;
        min-height: 37px;
        padding: 8px 10px;
        font-size: 10px
    }

    .gallery-filter b {
        min-width: 19px;
        height: 19px
    }

    .gallery-sidebar-note {
        display: none
    }

    .gallery-content-top h2 {
        font-size: 22px
    }

    .gallery-content-top p {
        font-size: 9px
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .gallery-card {
        border-radius: 11px
    }

    .gallery-card-media {
        aspect-ratio: 1/1
    }

    .gallery-card-info {
        padding: 9px 9px 11px;
        gap: 4px
    }

    .gallery-card-title {
        font-size: 10px
    }

    .gallery-card-open {
        opacity: 1;
        transform: none;
        width: 28px;
        height: 28px;
        right: 7px;
        top: 7px;
        font-size: 10px
    }

    .gallery-join-cta {
        width: calc(100% - 28px);
        margin-bottom: 55px;
        flex-wrap: wrap;
        padding: 19px;
        gap: 12px
    }

    .gallery-join-copy {
        flex: 1 1 calc(100% - 65px)
    }

    .gallery-join-copy h2 {
        font-size: 21px
    }

    .gallery-join-actions {
        width: 100%
    }

    .gallery-lightbox {
        padding: 65px 12px 25px
    }

    .lightbox-image-frame {
        height: 69vh
    }

    .lightbox-toolbar {
        top: 11px;
        left: 12px;
        right: 12px
    }

    .lightbox-brand {
        font-size: 8px
    }

    .lightbox-tool {
        min-width: 36px;
        min-height: 36px;
        padding: 7px
    }

    .lightbox-tool span {
        display: none
    }

    .lightbox-arrow {
        width: 38px;
        height: 38px
    }

    .lightbox-prev {
        left: 6px
    }

    .lightbox-next {
        right: 6px
    }
}

@media(max-width:390px) {
    .gallery-grid {
        gap: 8px
    }

    .gallery-card-title {
        font-size: 9px
    }

    .gallery-hero-count {
        transform: scale(.9);
        transform-origin: right bottom
    }
}

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

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


/* =====================================================
   GALLERY HERO — SPLIT LAYOUT
   Left: message and CTA | Right: original gallery photo
   Navbar, footer, gallery filters and photo cards untouched
===================================================== */
.gallery-page .gallery-hero {
    width: min(1400px, calc(100% - 36px));
    min-height: clamp(390px, 40vw, 520px);
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: stretch;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #eee9dc;
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 240, 0, .16), transparent 28%),
        linear-gradient(135deg, #fffdf4 0%, #fff8df 100%);
    box-shadow: 0 22px 55px rgba(20, 33, 63, .10);
}

.gallery-page .gallery-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    left: -150px;
    bottom: -175px;
    border: 1px solid rgba(217, 35, 54, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(217, 35, 54, .025), 0 0 0 58px rgba(217, 35, 54, .02);
    pointer-events: none;
}

.gallery-page .gallery-hero-copy {
    width: 100%;
    min-width: 0;
    align-self: center;
    padding: clamp(32px, 5vw, 70px) clamp(25px, 5vw, 68px);
    color: var(--gallery-navy);
}

.gallery-page .gallery-kicker {
    color: var(--gallery-red);
    line-height: 1.5;
}

.gallery-page .gallery-kicker i {
    background: var(--gallery-red);
}

.gallery-page .gallery-hero h1 {
    max-width: 590px;
    margin: 21px 0 17px;
    color: var(--gallery-navy);
    font: 700 clamp(37px, 4.4vw, 62px)/1.06 "Playfair Display", Georgia, serif;
    letter-spacing: -1.35px;
}

.gallery-page .gallery-hero h1 em {
    color: var(--gallery-red);
    font-style: normal;
}

.gallery-page .gallery-hero-copy>p {
    max-width: 455px;
    margin: 0;
    color: #677286;
    font-size: 13px;
    line-height: 1.85;
}

.gallery-page .gallery-hero-cta {
    margin-top: 25px;
    box-shadow: 0 9px 20px rgba(210, 190, 0, .13);
}

.gallery-page .gallery-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
    margin-top: 25px;
}

.gallery-page .gallery-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #687386;
    font-size: 14px;
    font-weight: 700;
}

.gallery-page .gallery-hero-trust i {
    color: var(--gallery-red);
    font-size: 10px;
}

.gallery-page .gallery-hero-visual {
    min-width: 0;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    margin: 12px;
    border-radius: 18px;
    background: #e8e5da;
    box-shadow: 0 13px 35px rgba(20, 33, 63, .12);
}

.gallery-page .gallery-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.gallery-page .gallery-hero:hover .gallery-hero-photo {
    transform: scale(1.035);
}

.gallery-page .gallery-photo-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(10, 20, 38, .53), transparent 45%);
    pointer-events: none;
}

.gallery-page .gallery-hero-count {
    z-index: 2;
    right: 18px;
    bottom: 18px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 15px;
    background: rgba(255, 255, 255, .78);
    color: var(--gallery-navy);
    box-shadow: 0 10px 28px rgba(10, 20, 38, .13);
    backdrop-filter: blur(15px);
}

.gallery-page .gallery-hero-count strong {
    color: var(--gallery-red);
}

.gallery-page .gallery-hero-count span {
    color: var(--gallery-navy);
}

.gallery-page .gallery-hero-count>i {
    color: var(--gallery-red);
}

.gallery-page .gallery-hero-orbit {
    position: absolute;
    z-index: 2;
    display: block;
    border: 1px solid rgba(255, 255, 255, .43);
    border-radius: 50%;
    pointer-events: none;
}

.gallery-page .gallery-orbit-one {
    width: 105px;
    height: 105px;
    top: 24px;
    right: 24px;
}

.gallery-page .gallery-orbit-two {
    width: 55px;
    height: 55px;
    top: 49px;
    right: 49px;
}

@media (max-width: 900px) {
    .gallery-page .gallery-hero {
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        min-height: 390px;
    }

    .gallery-page .gallery-hero-copy {
        padding: 32px 25px;
    }

    .gallery-page .gallery-hero h1 {
        font-size: clamp(34px, 4.8vw, 46px);
    }

    .gallery-page .gallery-hero-trust {
        gap: 8px 10px;
    }

    .gallery-page .gallery-hero-trust span {
        font-size: 8px;
    }
}

@media (max-width: 650px) {
    .gallery-page .gallery-hero {
        width: calc(100% - 24px);
        min-height: 0;
        grid-template-columns: 1fr;
        margin-top: 13px;
        border-radius: 18px;
    }

    .gallery-page .gallery-hero-copy {
        padding: 34px 23px 25px;
    }

    .gallery-page .gallery-hero h1 {
        max-width: 520px;
        margin: 15px 0 12px;
        font-size: clamp(38px, 10vw, 51px);
    }

    .gallery-page .gallery-hero-copy>p {
        font-size: 12px;
        line-height: 1.75;
    }

    .gallery-page .gallery-hero-cta {
        margin-top: 19px;
    }

    .gallery-page .gallery-hero-trust {
        gap: 9px 13px;
        margin-top: 18px;
    }

    .gallery-page .gallery-hero-trust span {
        font-size: 9px;
    }

    .gallery-page .gallery-hero-visual {
        min-height: 245px;
        height: 245px;
        margin: 0 10px 10px;
        border-radius: 13px;
    }

    .gallery-page .gallery-hero-count {
        right: 11px;
        bottom: 11px;
        padding: 9px 12px;
    }

    .gallery-page .gallery-hero-count strong {
        font-size: 23px;
    }

    .gallery-page .gallery-orbit-one {
        width: 72px;
        height: 72px;
        top: 14px;
        right: 14px;
    }

    .gallery-page .gallery-orbit-two {
        width: 38px;
        height: 38px;
        top: 31px;
        right: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page .gallery-hero-photo {
        transition: none !important;
    }
}