body.gallery-page {
    --gallery-blue: #3b82f6;
    --gallery-blue-light: #93c5fd;
    --gallery-green: #22c55e;
    --gallery-line: rgba(203, 213, 225, .18);
    --gallery-surface: rgba(255, 255, 255, .06);
}

body.gallery-page .gallery-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(640px, 84vh);
    overflow: hidden;
    border-bottom: 1px solid rgba(96, 165, 250, .22);
    background: #0b1220;
}
body.gallery-page .gallery-hero-media,
body.gallery-page .gallery-hero-media::after {
    position: absolute;
    inset: 0;
}
body.gallery-page .gallery-hero-media {
    background: url("/assets/img/galerie/thumbs/img_69b679e9bfdcc2.62325052.webp") center 45% / cover no-repeat;
    filter: saturate(.72) contrast(1.04) brightness(.47);
}
body.gallery-page .gallery-hero-media::after {
    background:
        linear-gradient(90deg, rgba(11, 18, 32, .92), rgba(11, 18, 32, .73), rgba(11, 18, 32, .92)),
        linear-gradient(0deg, rgba(11, 18, 32, .96), transparent 46%, rgba(11, 18, 32, .5));
    content: "";
}
body.gallery-page .gallery-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: min(100% - 40px, 1060px);
    padding: 150px 0 105px;
    text-align: center;
}
body.gallery-page .gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 12px;
    border: 1px solid rgba(147, 197, 253, .32);
    border-radius: 999px;
    background: rgba(15, 23, 42, .68);
    color: #dbeafe;
    font-size: .69rem;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}
body.gallery-page .gallery-kicker i { color: #86efac; }
body.gallery-page .gallery-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
    text-wrap: balance;
    text-shadow: 0 12px 38px rgba(2, 6, 23, .5);
}
body.gallery-page .gallery-hero h1 span { color: #9dcbff; }
body.gallery-page .gallery-hero-content > p:not(.gallery-kicker) {
    max-width: 700px;
    margin: 24px auto 0;
    color: #dce7f3;
    font-size: clamp(.96rem, 1.5vw, 1.08rem);
    line-height: 1.72;
}
body.gallery-page .gallery-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 32px;
}
body.gallery-page .gallery-facts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d9e6f5;
    font-size: .76rem;
    font-weight: 800;
}
body.gallery-page .gallery-facts i { color: #86efac; }

body.gallery-page .gallery-main {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 86px 0 90px;
}
body.gallery-page .gallery-section-heading {
    display: grid;
    justify-items: center;
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}
body.gallery-page .gallery-section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}
body.gallery-page .gallery-section-heading > p:last-child {
    max-width: 620px;
    margin: 17px auto 0;
    color: #aebdce;
    line-height: 1.7;
}

body.gallery-page .carousel-wrap {
    position: relative;
    width: 100%;
    margin: 0 0 38px;
    padding: 0 58px 40px;
    overflow: visible;
}
body.gallery-page .carousel-wrap[hidden],
body.gallery-page .media-unavailable img[hidden],
body.gallery-page .acc-cover[hidden] { display: none !important; }
body.gallery-page .carousel-wrap::before,
body.gallery-page .carousel-wrap::after { display: none; }
body.gallery-page .carousel-viewport {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, .24);
    border-radius: 18px;
    background: #08111f;
    box-shadow: 0 28px 70px rgba(2, 6, 23, .4), inset 0 1px 0 rgba(255, 255, 255, .07);
    isolation: isolate;
    touch-action: pan-y;
}
body.gallery-page .carousel-track {
    display: flex;
    gap: 0;
    width: 100%;
    animation: none !important;
    transition: transform .72s cubic-bezier(.22, .75, .18, 1);
    will-change: transform;
}
body.gallery-page .carousel-slide {
    position: relative;
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    appearance: none;
    aspect-ratio: 16 / 7;
    background: #0b1220;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
body.gallery-page .carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, .94) 0%, rgba(2, 6, 23, .7) 35%, rgba(2, 6, 23, .06) 72%);
    pointer-events: none;
}
body.gallery-page .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.015);
    transition: transform 5.5s ease;
}
body.gallery-page .carousel-slide.is-active img {
    transform: scale(1.07);
}
body.gallery-page .carousel-slide:hover img {
    transform: scale(1.09);
}
body.gallery-page .carousel-slide:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .8);
    outline-offset: -5px;
}
body.gallery-page .carousel-slide .cs-content {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 5vw, 62px);
    bottom: clamp(24px, 5vw, 58px);
    display: grid;
    max-width: min(540px, 72%);
    gap: 9px;
    color: #fff;
}
body.gallery-page .carousel-slide .cs-eyebrow {
    width: max-content;
    padding: 6px 10px;
    border: 1px solid rgba(52, 211, 153, .28);
    border-radius: 999px;
    background: rgba(6, 95, 70, .28);
    color: #a7f3d0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.gallery-page .carousel-slide .cs-label {
    position: static;
    padding: 0;
    background: none;
    font-size: clamp(1.5rem, 3.6vw, 3.2rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.035em;
    text-wrap: balance;
}
body.gallery-page .carousel-slide .cs-action {
    width: max-content;
    margin-top: 5px;
    padding-bottom: 4px;
    border-bottom: 2px solid #38bdf8;
    color: #dbeafe;
    font-size: .82rem;
    font-weight: 800;
}
body.gallery-page .carousel-control {
    position: absolute;
    z-index: 4;
    top: calc(50% - 20px);
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 50%;
    background: rgba(9, 20, 36, .94);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(2, 6, 23, .35);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
body.gallery-page .carousel-control--prev { left: 0; }
body.gallery-page .carousel-control--next { right: 0; }
body.gallery-page .carousel-control:hover,
body.gallery-page .carousel-control:focus-visible {
    border-color: rgba(56, 189, 248, .7);
    background: #0c2340;
    transform: translateY(-50%) scale(1.06);
}
body.gallery-page .carousel-control:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .72);
    outline-offset: 3px;
}
body.gallery-page .carousel-dots {
    position: absolute;
    right: auto;
    bottom: 10px;
    left: 50%;
    z-index: 4;
    display: flex;
    width: max-content;
    max-width: calc(100% - 116px);
    padding: 6px 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    transform: translateX(-50%);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}
body.gallery-page .carousel-dots::-webkit-scrollbar {
    display: none;
}
body.gallery-page .carousel-dot {
    flex: 0 0 auto;
    width: 18px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, .32);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
body.gallery-page .carousel-dot.is-active {
    width: 36px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee, #34d399);
}
body.gallery-page .carousel-dot:focus-visible {
    outline: 2px solid #bfdbfe;
    outline-offset: 4px;
}

body.gallery-page .gal-wrap {
    width: 100%;
    max-width: none;
    padding: 0 0 62px;
}
body.gallery-page .acc-item {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--gallery-line);
    border-radius: 8px;
    background: var(--gallery-surface);
    box-shadow: 0 16px 36px rgba(2, 6, 23, .16), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.gallery-page .acc-title { margin: 0; }
body.gallery-page .acc-head {
    min-height: 84px;
    width: 100%;
    padding: 15px 20px;
    border: 0;
    appearance: none;
    background: transparent;
    color: inherit;
    font: inherit;
    outline: none;
    text-align: left;
}
body.gallery-page .acc-head:hover,
body.gallery-page .acc-head:focus-visible { background: rgba(59, 130, 246, .08); }
body.gallery-page .acc-head:focus-visible { box-shadow: inset 0 0 0 2px rgba(96, 165, 250, .55); }
body.gallery-page .acc-cover {
    width: 72px;
    height: 52px;
    margin-right: 16px;
    border: 1px solid rgba(96, 165, 250, .3);
    border-radius: 7px;
}
body.gallery-page .acc-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}
body.gallery-page .acc-heading > i {
    flex: 0 0 auto;
    color: #86efac !important;
    font-size: .9rem;
}
body.gallery-page .acc-name {
    min-width: 0;
    overflow-wrap: anywhere;
}
body.gallery-page .acc-count {
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(59, 130, 246, .1);
    color: #bfdbfe !important;
}
body.gallery-page .acc-date { color: #8fa0b4; }
body.gallery-page .acc-arrow { color: #9dcbff; }
body.gallery-page .acc-body { padding: 0 20px 20px; }
body.gallery-page .acc-body[hidden] { display: none !important; }
body.gallery-page .acc-infotext {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(203, 213, 225, .13);
    border-left: 3px solid #22c55e;
    border-radius: 7px;
    background: rgba(11, 18, 32, .5);
    color: #bdcada;
}
body.gallery-page .img-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100% !important;
    max-width: none !important;
}
body.gallery-page .img-cell {
    display: block;
    width: 100%;
    padding: 0;
    appearance: none;
    border: 1px solid rgba(203, 213, 225, .14);
    border-radius: 7px;
    background: #0b1220;
    color: #fff;
    font: inherit;
    text-align: left;
}
body.gallery-page .img-cell:hover,
body.gallery-page .img-cell:focus-visible {
    border-color: rgba(96, 165, 250, .48);
    box-shadow: 0 16px 32px rgba(2, 6, 23, .28);
    transform: translateY(-3px);
}
body.gallery-page .img-cell:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .8);
    outline-offset: 3px;
}
body.gallery-page .img-cell-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;
    background: rgba(2, 6, 23, .82);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}
body.gallery-page .img-cell:hover .img-cell-hint,
body.gallery-page .img-cell:focus-visible .img-cell-hint {
    opacity: 1;
    transform: none;
}
body.gallery-page .vn-wrap {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(96, 165, 250, .48);
    border-radius: 7px;
    cursor: ew-resize;
    touch-action: pan-y;
}
body.gallery-page .vn-wrap:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .8);
    outline-offset: 3px;
}
body.gallery-page .vn-before {
    width: 100%;
    overflow: hidden;
    will-change: clip-path;
}
body.gallery-page .vn-before img,
body.gallery-page .vn-after img {
    width: 100%;
    min-width: 0;
    height: 100%;
    object-fit: cover;
}
body.gallery-page .vn-handle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .65);
    background: rgba(15, 23, 42, .88);
    color: #fff;
    backdrop-filter: blur(10px);
}
body.gallery-page .vn-labels span {
    border-radius: 5px;
    background: rgba(15, 23, 42, .84);
    backdrop-filter: blur(8px);
}

body.gallery-page .gallery-status {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 56px 24px;
    border: 1px solid var(--gallery-line);
    border-radius: 8px;
    background: var(--gallery-surface);
    text-align: center;
}
body.gallery-page .gallery-status h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.08rem;
}
body.gallery-page .gallery-status p {
    max-width: 520px;
    margin: 0;
    color: #aebdce;
    line-height: 1.6;
}
body.gallery-page .gallery-status__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(147, 197, 253, .22);
    border-top-color: #93c5fd;
    border-radius: 50%;
    animation: gallery-spin .8s linear infinite;
}
body.gallery-page .gallery-status__action {
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(147, 197, 253, .4);
    border-radius: 8px;
    background: rgba(37, 99, 235, .16);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}
body.gallery-page .gallery-status__action:hover { background: rgba(37, 99, 235, .28); }
body.gallery-page .gallery-status__action:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .8);
    outline-offset: 3px;
}
body.gallery-page .gallery-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(147, 197, 253, .2);
    border-radius: 7px;
    background: rgba(59, 130, 246, .07);
    color: #bfdbfe;
    font-size: .82rem;
    line-height: 1.55;
}
@keyframes gallery-spin { to { transform: rotate(360deg); } }

body.gallery-page .media-unavailable {
    background: linear-gradient(135deg, #111c2e, #0b1220);
}
body.gallery-page .media-fallback {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 1;
    width: max-content;
    max-width: calc(100% - 32px);
    color: #aebdce;
    font-size: .76rem;
    font-weight: 700;
    text-align: center;
    transform: translate(-50%, -50%);
}

body.gallery-page .gallery-cta-card {
    display: grid;
    justify-items: center;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: clamp(38px, 6vw, 64px);
    overflow: hidden;
    border: 1px solid var(--gallery-line);
    border-radius: 8px;
    background: var(--gallery-surface);
    box-shadow: 0 16px 36px rgba(2, 6, 23, .18), inset 0 1px 0 rgba(255, 255, 255, .07);
    text-align: center;
}
body.gallery-page .gallery-cta-card h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
}
body.gallery-page .gallery-cta-card > p:not(.gallery-kicker) {
    max-width: 640px;
    margin: 16px auto 0;
    color: #aebdce;
    line-height: 1.7;
}
body.gallery-page .gallery-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    margin-top: 27px;
}
body.gallery-page .gallery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid rgba(147, 197, 253, .35);
    border-radius: 14px;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    transition: transform .3s ease, box-shadow .3s ease;
}
body.gallery-page .gallery-button--primary {
    background: linear-gradient(118deg, #2563eb, #22b8e6, #22c55e);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22), 0 0 20px rgba(34, 197, 94, .1);
}
body.gallery-page .gallery-button--secondary { background: rgba(15, 23, 42, .72); }
body.gallery-page .gallery-button:hover { box-shadow: 0 15px 32px rgba(37, 99, 235, .25); transform: translateY(-2px); }

body.gallery-page .lb { background: rgba(2, 6, 23, .96); backdrop-filter: blur(16px); }
body.gallery-page .lb[hidden] { display: none !important; }
body.gallery-page .lb-media {
    display: grid;
    min-width: min(280px, 82vw);
    min-height: 120px;
    place-items: center;
}
body.gallery-page .lb img {
    max-width: min(88vw, 1400px);
    max-height: 84vh;
    border: 1px solid rgba(203, 213, 225, .22);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
body.gallery-page .lb-loading {
    max-width: min(420px, 76vw);
    color: #dbeafe;
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}
body.gallery-page .lb-loading[hidden] { display: none; }
body.gallery-page .lb-close,
body.gallery-page .lb-prev,
body.gallery-page .lb-next {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, .24);
    border-radius: 8px;
    background: rgba(15, 23, 42, .8);
    color: #fff;
    font-size: 1rem;
    opacity: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
body.gallery-page .lb-close { top: 20px; right: 20px; }
body.gallery-page .lb-prev { left: 20px; }
body.gallery-page .lb-next { right: 20px; }
body.gallery-page .lb-count { color: #cbd5e1; }
body.gallery-page .lb button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}
body.gallery-page .gallery-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 760px) {
    body.gallery-page .gallery-hero { min-height: 560px; }
    body.gallery-page .gallery-hero-content { padding: 132px 0 82px; }
    body.gallery-page .gallery-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
    body.gallery-page .gallery-facts { display: grid; gap: 10px; }
    body.gallery-page .gallery-main { width: calc(100% - 28px); padding: 65px 0 70px; }
    body.gallery-page .carousel-wrap { padding: 0 0 42px; }
    body.gallery-page .carousel-slide { aspect-ratio: 16 / 10; }
    body.gallery-page .carousel-slide::after {
        background: linear-gradient(0deg, rgba(2, 6, 23, .94) 0%, rgba(2, 6, 23, .48) 48%, rgba(2, 6, 23, .04) 78%);
    }
    body.gallery-page .carousel-slide .cs-content {
        right: 24px;
        bottom: 24px;
        left: 24px;
        max-width: none;
    }
    body.gallery-page .carousel-control {
        top: calc(50% - 21px);
        width: 40px;
        height: 40px;
        background: rgba(9, 20, 36, .86);
    }
    body.gallery-page .carousel-control--prev { left: 10px; }
    body.gallery-page .carousel-control--next { right: 10px; }
    body.gallery-page .carousel-dots { right: auto; left: 50%; max-width: 100%; }
    body.gallery-page .img-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.gallery-page .vn-wrap { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
    body.gallery-page .acc-date { display: none; }
}

@media (max-width: 520px) {
    body.gallery-page .carousel-slide { aspect-ratio: 4 / 3; }
    body.gallery-page .carousel-slide .cs-content { right: 18px; bottom: 18px; left: 18px; gap: 6px; }
    body.gallery-page .carousel-slide .cs-eyebrow { font-size: .62rem; }
    body.gallery-page .carousel-slide .cs-label { font-size: clamp(1.35rem, 7vw, 2rem); }
    body.gallery-page .carousel-slide .cs-action { font-size: .75rem; }
    body.gallery-page .carousel-dot { width: 14px; }
    body.gallery-page .carousel-dot.is-active { width: 28px; }
    body.gallery-page .acc-head { display: grid; grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 10px; padding: 13px; }
    body.gallery-page .acc-cover { width: 58px; height: 44px; margin: 0; }
    body.gallery-page .acc-heading { display: grid; gap: 4px; font-size: .86rem; }
    body.gallery-page .acc-heading > i { display: none; }
    body.gallery-page .acc-count { justify-self: start; }
    body.gallery-page .acc-head.has-missing-cover { grid-template-columns: minmax(0, 1fr) 18px; }
    body.gallery-page .acc-body { padding: 0 13px 13px; }
    body.gallery-page .img-grid { grid-template-columns: 1fr; }
    body.gallery-page .vn-wrap { grid-column: 1; }
    body.gallery-page .gallery-cta-actions { display: grid; width: 100%; }
    body.gallery-page .lb-prev { left: 8px; }
    body.gallery-page .lb-next { right: 8px; }
}

@media (hover: none) {
    body.gallery-page .img-cell-hint {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.gallery-page .gallery-status__spinner { animation: none; }
    body.gallery-page .carousel-track,
    body.gallery-page .carousel-slide img,
    body.gallery-page .img-cell,
    body.gallery-page .img-cell img,
    body.gallery-page .img-cell-hint { transition: none; }
}
