/* ========================================= */
/* CSS GLOBAL: LIGHTBOX (VISOR DE IMÁGENES)  */
/* ========================================= */

/* Efecto hover universal para cualquier imagen clickeable */
.lightbox-trigger {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.lightbox-trigger:hover {
    transform: scale(1.02);
    filter: brightness(0.85);
}

/* Estructura del fondo oscuro y la imagen */
.lightbox-overlay {
    position: fixed;
    z-index: 9999; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh; 
    object-fit: contain; 
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1); 
}

/* El botón de cerrar (la X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ff4d4d; 
}