.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Oculto por defecto */
    align-items: center;  /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    z-index: 10000000;
    border-color: transparent !important;
}

.lightbox-overlay.active {
    display: flex; /* Se muestra cuando el lightbox está activo */
}

/* Contenedor del contenido */
.lightbox-content {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imágenes y videos en Lightbox */
.lightbox-body img, 
.lightbox-body video {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: auto;
}

/* Botón de cierre */
.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Flechas de navegación */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.texto_cerrar_ventana{
    position: absolute;
    display: block;
    bottom: 20px;
    background: red;
    height: 50px;
    padding: 0;
    font-weight: bold;
    border-radius: 5px 5px 0 0 ;
    color: #fff;
    cursor: pointer;
}