
/* =====================================================
   LIGHTBOX TUWEBENUNDÍA
===================================================== */

#lightbox-tweud {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.94);
    padding: 30px;
}

#lightbox-tweud.activo {
    display: flex;
}

.lightbox-contenido {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox-imagen-contenedor {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-imagen {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-cerrar,
.lightbox-anterior,
.lightbox-siguiente {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-cerrar:hover,
.lightbox-anterior:hover,
.lightbox-siguiente:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-cerrar {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 32px;
}

.lightbox-anterior,
.lightbox-siguiente {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 23px;
}

.lightbox-anterior {
    left: 15px;
}

.lightbox-siguiente {
    right: 15px;
}

.lightbox-contador {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
}

body.lightbox-abierto {
    overflow: hidden;
}

@media (max-width: 600px) {

    #lightbox-tweud {
        padding: 12px;
    }

    .lightbox-imagen {
        max-height: 80vh;
    }

    .lightbox-anterior,
    .lightbox-siguiente {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .lightbox-anterior {
        left: 5px;
    }

    .lightbox-siguiente {
        right: 5px;
    }

}
