.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10040; /* por debajo de notificaciones (10100) y modales (10160) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
}

.preview-content img,
.preview-content video {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.preview-close-button {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10041; /* por debajo de notificaciones/modales */
    transition: background-color 0.2s;
}

.preview-close-button:hover {
    background-color: rgba(255, 0, 0, 0.7);
}


.tooltip-label i.fa-sun {
    color: #ffcc00; 
}


.tooltip-value.hdr-yes {
    color: #8aff8a !important; 
}

.tooltip-value.hdr-probable {
    color: #8ad9ff !important; 
}

.tooltip-value.hdr-posible {
    color: #ffcc00 !important; 
}

@media (max-width: 768px) {
    .preview-close-button {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .preview-content img,
    .preview-content video {
        max-width: 95vw;
        max-height: 80vh;
    }
}
