/* ═══════════════════════════════════════════════════
   lightbox.css  ·  Image lightbox overlay
   ═══════════════════════════════════════════════════ */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.lightbox-overlay.is-open {
    display: flex;
}

/* Dark blurred backdrop — separate element so clicking it closes */
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 25, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: lb-fade-in 0.25s ease both;
}

/* Image wrapper — sits above backdrop */
.lightbox-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 640px);
    max-height: 88vh;
    animation: lb-scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.35);
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.1);
}

/* Animations */
@keyframes lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes lb-scale-in {
    from { opacity: 0; transform: scale(0.78); }
    to   { opacity: 1; transform: scale(1); }
}

/* Thumbnail cursor hint */
.mini-img {
    cursor: zoom-in;
}
