/* unit: lightbox.css */
/**
 * Estilos del componente Lightbox.
 * Incluir este archivo junto a lightbox.js, por ejemplo:
 *   <link rel="stylesheet" href="lightbox.css">
 */

.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.lightbox-backdrop.open {
    display: flex;
}

/* Bloquea el scroll del body mientras el lightbox está abierto */
body.lightbox-locked {
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: -4px;
    width: 34px !important;
    height: 34px !important;
    padding: 0px !important;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

/* En pantallas chicas, el botón de cerrar se reubica arriba a la derecha
   de la pantalla en lugar de "flotar" sobre el contenido */
@media (max-width: 480px) {
    .lightbox-close {
        top: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.5);
    }
}
