html {
    box-sizing: border-box;
    scrollbar-width: none;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

* {
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

:root {
    --text: #111111;
    --muted: rgba(17, 17, 17, 0.58);
    --soft: rgba(17, 17, 17, 0.08);
    --overlay: rgba(243, 243, 240, 0.72);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

header {
    position: fixed;
    top: 18px;
    left: 24px;
    right: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.78);
    pointer-events: none;
}

header a,
header nav,
header ul,
header li {
    pointer-events: auto;
}

header>a {
    font-weight: 400;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.stage-viewport {
    position: fixed;
    inset: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    cursor: default;
}

.stage {
    position: relative;
    width: 138vw;
    height: 122vh;
    min-width: 138vw;
    min-height: 122vh;
}

.item {
    position: absolute;
    width: 190px;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.item a {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e8e8e3;
    box-shadow: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.item:hover img {
    transform: scale(1.015);
}

.video-title {
    margin: 7px 0 0;
    font-size: 8px;
    line-height: 1.35;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.56);
    max-width: 96%;
}

.info {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
    width: min(560px, 78vw);
}

.info h1 {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.02;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
}

.info h2 {
    margin: 10px 0 0;
    font-size: clamp(9px, 0.95vw, 12px);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
}

footer {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 12px;
    z-index: 40;
    pointer-events: none;
}

footer h4 {
    margin: 0;
    font-size: 6px;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.42);
    white-space: nowrap;
    overflow: visible;
}

.fade-thumb {
    animation: fadeOnly 1.8s ease forwards;
    -webkit-animation: fadeOnly 1.8s ease forwards;
}

@keyframes fadeOnly {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeOnly {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: rgba(243, 243, 240, 0.82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-inner {
    position: relative;
    max-width: min(980px, 78vw);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-title {
    margin: 10px 0 0;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.62);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    color: rgba(17, 17, 17, 0.66);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.lightbox-close:hover {
    color: rgba(17, 17, 17, 0.96);
}

@media (max-width: 900px) {
    .item {
        width: 170px;
    }

    .info h1 {
        font-size: clamp(20px, 5vw, 28px);
    }

    .info h2 {
        font-size: clamp(8px, 1.7vw, 11px);
    }
}

@media (max-width: 520px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
    }

    header {
        top: 14px;
        left: 14px;
        right: 14px;
        font-size: 10px;
    }

    .stage-viewport {
        position: relative;
        inset: auto;
        overflow: visible;
        width: 100%;
        height: auto;
        padding: 72px 14px 48px;
    }

    .stage {
        position: relative;
        width: 100%;
        min-width: 100%;
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .info {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        order: -1;
        width: 100%;
        padding: 40px 0 18px;
    }

    .info h1,
    .info h2 {
        opacity: 1;
    }

    .info h1 {
        font-size: 24px;
    }

    .info h2 {
        font-size: 10px;
        margin-top: 8px;
    }

    .item {
        position: relative;
        width: 100%;
        opacity: 1;
    }

    .video-title {
        font-size: 9px;
    }

    footer {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 8px 14px 18px;
    }

    footer h4 {
        font-size: 8px;
        white-space: normal;
    }

    .lightbox {
        padding: 18px;
    }

    .lightbox-inner {
        max-width: 100%;
        max-height: 88vh;
    }

    .lightbox img {
        max-height: 76vh;
    }

    .lightbox-title {
        font-size: 9px;
    }

    .lightbox-close {
        top: -2px;
        right: -2px;
    }
}