/* ========================================
   TopSaver Club - Lightbox de imágenes
   ======================================== */

.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 1.5rem;
    cursor: pointer;
}

.image-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.image-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-md, 12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.image-lightbox-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .image-lightbox-close {
        transition: none;
    }
}

@media print {
    .image-lightbox-overlay {
        display: none;
    }
}
