:root {
    --gold: #c8a96a;
    --gold-light: #dfc786;
    --cream: #f2ede3;
    --black: #030303;
    --panel: #0a0a0a;
    --line: rgba(200, 169, 106, 0.32);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    background: var(--black);
    color: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.gallery-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 82px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
}

.gallery-logo {
    display: flex;
    align-items: center;
}

.gallery-logo img {
    display: block;
    width: auto;
    height: 55px;
    object-fit: contain;
}

.gallery-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.gallery-nav a {
    color: rgba(242, 237, 227, 0.76);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.gallery-nav a:hover {
    color: var(--gold-light);
}

.gallery-nav .visit-link {
    padding: 12px 22px;
    color: var(--black);
    background: var(--gold);
    border-radius: 999px;
}

.gallery-nav .visit-link:hover {
    color: var(--black);
    background: var(--gold-light);
}

.gallery-page {
    width: 100%;
    padding-top: 82px;
}

.gallery-stage {
    position: relative;
    width: 100%;
    height: calc(100svh - 82px);
    min-height: 620px;
    overflow: hidden;
    background: #090909;
}

.gallery-slides,
.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition:
        opacity 1.1s ease,
        visibility 1.1s ease,
        transform 7s ease;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.42) 38%,
            rgba(0, 0, 0, 0.07) 72%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.54),
            transparent 48%
        );
}

.gallery-copy {
    position: absolute;
    left: 6vw;
    bottom: 12vh;
    z-index: 5;
    width: min(610px, 78vw);
}

.gallery-eyebrow {
    display: inline-flex;
    padding: 9px 16px;
    margin-bottom: 22px;
    color: var(--gold-light);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.38);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
}

.gallery-copy h1 {
    max-width: 560px;
    margin-bottom: 18px;
    font-size: clamp(54px, 7vw, 108px);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.gallery-copy p {
    max-width: 530px;
    color: rgba(242, 237, 227, 0.78);
    font-size: 16px;
    line-height: 1.7;
}

.gallery-counter {
    position: absolute;
    right: 5vw;
    bottom: 47px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--cream);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.counter-line {
    display: block;
    width: 45px;
    height: 1px;
    background: var(--gold);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--cream);
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.gallery-arrow span {
    margin-top: -4px;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1;
}

.gallery-arrow:hover {
    color: var(--black);
    background: var(--gold);
    border-color: var(--gold);
}

.gallery-prev {
    left: 25px;
}

.gallery-next {
    right: 25px;
}

.gallery-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 7;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.gallery-progress-bar {
    width: 0;
    height: 100%;
    background: var(--gold);
}

.gallery-thumbnails-section {
    padding: 90px 5vw 110px;
    background:
        radial-gradient(
            circle at 75% 10%,
            rgba(200, 169, 106, 0.08),
            transparent 33%
        ),
        var(--black);
}

.gallery-thumbnails-header {
    max-width: 1500px;
    margin: 0 auto 42px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.gallery-thumbnails-header span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 0.23em;
}

.gallery-thumbnails-header h2 {
    margin-top: 9px;
    font-size: clamp(30px, 4vw, 58px);
    letter-spacing: -0.04em;
}

.gallery-thumbnails-header p {
    max-width: 390px;
    color: rgba(242, 237, 227, 0.6);
    font-size: 14px;
    line-height: 1.65;
}

.gallery-thumbnails {
    max-width: 1500px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
}

.gallery-thumb {
    position: relative;
    height: 150px;
    padding: 0;
    overflow: hidden;
    background: #111;
    border: 1px solid transparent;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.58;
    filter: grayscale(0.22);
    transition:
        opacity 0.4s ease,
        transform 0.6s ease,
        filter 0.4s ease;
}

.gallery-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.35s ease;
}

.gallery-thumb:hover img,
.gallery-thumb.active img {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.055);
}

.gallery-thumb.active::after {
    border-color: var(--gold);
}

.gallery-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 30px;
    color: rgba(242, 237, 227, 0.72);
    background:
        linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.75)),
        url("images/noir-fashion-hero-01.avif?v=hgroup-v2") center/cover;
    text-align: center;
}

.gallery-empty div {
    max-width: 600px;
}

.gallery-empty h2 {
    margin-bottom: 14px;
    color: var(--gold-light);
    font-size: 40px;
}

.gallery-empty p {
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .gallery-header {
        height: 72px;
        padding: 0 20px;
    }

    .gallery-logo img {
        height: 43px;
    }

    .gallery-nav a:not(.visit-link) {
        display: none;
    }

    .gallery-nav .visit-link {
        padding: 10px 15px;
        font-size: 9px;
    }

    .gallery-page {
        padding-top: 72px;
    }

    .gallery-stage {
        height: calc(100svh - 72px);
        min-height: 600px;
    }

    .gallery-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.84) 0%,
                rgba(0, 0, 0, 0.25) 68%,
                rgba(0, 0, 0, 0.12) 100%
            );
    }

    .gallery-copy {
        left: 24px;
        right: 24px;
        bottom: 92px;
        width: auto;
    }

    .gallery-eyebrow {
        margin-bottom: 17px;
        font-size: 8px;
    }

    .gallery-copy h1 {
        font-size: clamp(48px, 15vw, 72px);
        line-height: 0.92;
    }

    .gallery-copy p {
        font-size: 14px;
        line-height: 1.6;
    }

    .gallery-arrow {
        top: 45%;
        width: 44px;
        height: 44px;
    }

    .gallery-prev {
        left: 14px;
    }

    .gallery-next {
        right: 14px;
    }

    .gallery-counter {
        right: 24px;
        bottom: 28px;
    }

    .gallery-thumbnails-section {
        padding: 65px 20px 80px;
    }

    .gallery-thumbnails-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

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

    .gallery-thumb {
        height: 130px;
    }
}
