* { box-sizing: border-box; }

/* body {
    margin: 0;
    padding: 40px 20px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #111;
    color: #eee;
    display: flex;
    justify-content: center;
} */

/* ---------- Gallery wrapper ---------- */
.gallery {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- Big featured image ---------- */
.gallery__stage {  
    width: calc(100% - 20px); /* Accounts for 10px left + 10px right margin */
    margin: 10px;
    aspect-ratio: 3 / 2;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery__stage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.gallery__stage-img:hover { transform: scale(1.01); }

/* Fade when swapping images */
.gallery__stage-img.is-swapping { opacity: 0; }

/* ---------- Thumbnail strip ---------- */
.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
    margin: 10px;
}

.gallery__thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.gallery__thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery__thumb.is-active {
    border-color: #e90102;
    opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    padding: 20px;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.25s ease;
    user-select: none;
}

.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__close {
    position: absolute;
    top: 16px; right: 24px;
    width: 44px; height: 44px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff; font-size: 28px; line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.28); }

.lightbox__nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff; font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox.single .lightbox__nav { display: none; }