/* ==========================================================================
   lightbox.css — full-size photo viewer (shared by every page)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(14, 13, 12, 0.92);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox[hidden] { display: none; }

.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transform: scale(0.98);
  transition: transform 0.25s var(--ease);
}

.lightbox.is-open .lightbox__figure { transform: none; }

.lightbox__figure img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox__figure figcaption {
  font-size: var(--step--1);
  color: rgba(251, 248, 245, 0.78);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(251, 248, 245, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.lightbox__close:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox__close svg { width: 19px; height: 19px; }
