/* ==========================================================================
   Lightbox — full-screen image view for the game screenshots (js/lightbox.js).
   ========================================================================== */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: var(--space-xl);
}
.lightbox-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-overlay img {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-dim);
    box-shadow: 0 0 50px var(--accent-glow), 0 15px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}
.lightbox-overlay.is-open img { transform: scale(1); }

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-xl);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: var(--accent-tint-3);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 0 10px var(--accent-glow);
    transition: all var(--duration-fast) ease;
}
.lightbox-close:hover {
    background: var(--accent);
    color: var(--text-on-accent);
    text-shadow: none;
    box-shadow: 0 0 20px var(--accent-glow);
}
