/* components/lightbox.css */

/* Lightbox
   ============================================================ */

body.lightbox-lock {
  overflow: hidden;
}

.lightbox-overlay {
  display: none;
}

.lightbox-overlay.is-open {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    rgba(var(--smoke-deep-rgb), 0.93);
}

.lightbox-body {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-page {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
}

.lightbox-page > img {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-panel);
}

.lightbox-counter {
  margin: 0;
  color: var(--cta-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* Botón para cerrar el lightbox
   ============================================================ */

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-h1);
  font-size: 1.6rem;
  cursor: pointer;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.lightbox-close:hover {
  color: var(--hover-primary);
  transform: scale(1.1);
}

