/* lightbox.css */
/* ======================================================
   ARVENSIS: 10. LIGHTBOX
   Estilos para el lightbox de imágenes
   ====================================================== */

/* Importar variables base */
@import url("base.css");

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

.lightbox[aria-hidden="false"] {
  display: flex;
  animation: fadeIn 0.25s ease forwards; /* Re-usando la anim del modal */
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radio-borde-md);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--color-blanco);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  text-shadow: 0 0 5px var(--color-negro);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}