/**
 * ImageLightbox - Fullscreen image viewer overlay.
 * Works identically in light and dark mode (backdrop is always dark by design).
 */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.image-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff;
    color: #212529;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-lightbox-caption {
    text-align: center;
    color: #fff;
    padding: 0.5rem;
    font-size: 0.9rem;
}
