/* =============================================
   Shared Lightbox — used across all pages
   ============================================= */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.lightbox-visible {
    opacity: 1;
}

/* Close button — fixed top-right of screen */
.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 10000;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #FF5E14;
}

/* Image wrapper */
.lightbox-img-wrap {
    position: relative;
    max-width: min(500px, 92vw);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}

.lightbox-overlay.lightbox-visible .lightbox-img-wrap {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    background: #1a1a1a;
    border-radius: 12px;
}

/* Caption floating just below the image */
.lightbox-caption {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    padding: 0.55rem 1rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
}
