/* Keep the site's Playground identity; tighten only the image montage. */
.playground-hero {
    min-height: 0;
    padding-top: clamp(42px, 5vw, 70px);
    padding-bottom: 20px;
}

.playground-hero-meta {
    margin-top: clamp(20px, 2.5vw, 34px);
}

.playground-montage {
    padding-top: 0;
    padding-bottom: clamp(48px, 6vw, 80px);
    columns: 4;
    column-gap: 10px;
}

.montage-piece {
    margin-bottom: 10px;
}

.montage-piece img {
    border: 1px solid var(--color-white);
    padding: 2px;
    background: var(--color-black);
}

.montage-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.montage-open img {
    transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}

.montage-open:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .montage-open:hover img {
        transform: scale(1.025);
        filter: brightness(1.08);
        box-shadow: 0 10px 22px rgba(0, 0, 0, .48);
    }
}

.playground-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 56px 24px 24px;
    border: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, .97);
    color: var(--color-white);
}

.playground-lightbox[open] {
    display: grid;
    place-items: center;
}

.playground-lightbox::backdrop { background: #000; }

.playground-lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    object-fit: contain;
    border: 1px solid var(--color-white);
}

.playground-lightbox-close {
    position: absolute;
    top: 14px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--color-white);
    background: #0a0a0a;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.playground-lightbox-close:hover,
.playground-lightbox-close:focus-visible {
    background: var(--color-teal);
    color: var(--color-black);
}

html.site-cursor-enabled .playground-lightbox,
html.site-cursor-enabled .playground-lightbox img {
    cursor: default !important;
}

html.site-cursor-enabled .playground-lightbox-close {
    cursor: pointer !important;
}

@media (min-width: 1500px) {
    .playground-montage { columns: 5; }
}

@media (max-width: 1000px) {
    .playground-montage { columns: 3; }
}

@media (max-width: 760px) {
    .playground-hero {
        min-height: 0;
        padding-top: 48px;
        padding-bottom: 18px;
    }
    .playground-hero-meta { margin-top: 22px; }
    .playground-montage {
        columns: 3;
        column-gap: 8px;
    }
    .montage-piece { margin-bottom: 8px; }
}

@media (max-width: 560px) {
    .playground-hero h1 { font-size: 11.4vw; }
    .playground-montage { columns: 2; }
    .playground-lightbox { padding: 58px 14px 18px; }
    .playground-lightbox-close { right: 14px; }
    .playground-lightbox img {
        max-height: calc(100vh - 76px);
        max-height: calc(100dvh - 76px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .montage-open img { transition: none; }
    .montage-open:hover img { transform: none; }
}
