/* Renders — drifting image field */
.renders-field {
    columns: 3 270px;
    column-gap: clamp(18px, 3vw, 42px);
    padding: clamp(35px, 6vw, 82px) 0 4vh;
}
.render-item {
    --drift: 12px;
    --tilt: 1deg;
    --speed: 8s;
    --delay: 0s;
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 clamp(22px, 3vw, 42px);
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    break-inside: avoid;
    cursor: zoom-in;
    transform-origin: 50% 50%;
    animation: render-drift var(--speed) ease-in-out var(--delay) infinite alternate;
    transition: filter .35s ease;
    -webkit-tap-highlight-color: transparent;
}
.render-item:nth-child(3n + 1) { width: 91%; margin-left: 5%; }
.render-item:nth-child(3n + 2) { width: 96%; margin-left: 2%; }
.render-item:nth-child(3n) { width: 86%; margin-left: 10%; }
.render-item img {
    display: block;
    width: 100%;
    height: auto;
    background: rgba(255,255,255,.06);
    box-shadow: 0 12px 34px rgba(12, 27, 69, .12);
    transition: transform .5s cubic-bezier(.2,.75,.25,1), box-shadow .5s ease;
}
.render-item:hover,
.render-item:focus-visible {
    z-index: 2;
    animation-play-state: paused;
    outline: none;
}
.render-item:hover img,
.render-item:focus-visible img {
    transform: scale(1.035) rotate(0deg);
    box-shadow: 0 22px 55px rgba(12, 27, 69, .25);
}
.render-item:focus-visible img { outline: 1px solid white; outline-offset: 5px; }
@keyframes render-drift {
    from { transform: translate3d(0, calc(var(--drift) * -0.5), 0) rotate(calc(var(--tilt) * -1)); }
    to { transform: translate3d(0, var(--drift), 0) rotate(var(--tilt)); }
}
.render-status {
    padding: 65px 0 90px;
    color: #D0D0D0;
    font-size: 15px;
    font-weight: 300;
}
.render-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: clamp(16px, 3vw, 36px);
    background: rgba(8, 14, 32, .96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.render-lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-top, .lightbox-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: rgba(255,255,255,.68);
    font: 12px "IBM Plex Mono", monospace;
    letter-spacing: -.02em;
}
.lightbox-controls { display: flex; align-items: center; gap: 10px; }
.lightbox-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: transparent;
    color: white;
    font: 22px "Inter", sans-serif;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.lightbox-button:hover { background: rgba(255,255,255,.12); border-color: white; }
.lightbox-stage {
    min-height: 0;
    display: grid;
    place-items: center;
}
.lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
    object-fit: contain;
    opacity: 0;
    transform: scale(.975);
    transition: opacity .25s ease, transform .35s cubic-bezier(.2,.75,.25,1);
}
.lightbox-image.is-visible { opacity: 1; transform: scale(1); }
.lightbox-hint { color: rgba(255,255,255,.45); }
body.lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
    .renders-field { columns: 2 145px; column-gap: 15px; padding-top: 32px; }
    .render-item { margin-bottom: 20px; }
    .render-item:nth-child(3n + 1), .render-item:nth-child(3n + 2), .render-item:nth-child(3n) { width: 100%; margin-left: 0; }
    .lightbox-button { width: 38px; height: 38px; }
    .lightbox-image {
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
    }
    .lightbox-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .render-item { animation: none; }
    .render-item img, .render-lightbox, .lightbox-image { transition: none; }
}
