@charset "utf-8";

/* ============================================================
   Lightbox — paired with lightbox.js
   Palette inherits from asa.css custom properties
   ============================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  font-family: var(--font-stack, sans-serif);
}
.lightbox-overlay.open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img,
.lightbox-video {
  max-width: min(90vw, 1400px);
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  background: #000;
  border: 4px solid #fffaf0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.lightbox-audio {
  width: min(80vw, 480px);
  display: block;
  outline: none;
}

.lightbox-caption {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--bg-wheat, #f5deb7);
  text-align: center;
  letter-spacing: 0.02em;
  max-width: min(90vw, 800px);
  line-height: 1.4;
}

/* Buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 250, 240, 0.92);
  color: var(--blue, #025090);
  border: 0;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--orange, #ef4320);
  color: #fff;
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--orange, #ef4320);
  outline-offset: 3px;
}

.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev  { left:  18px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* Mobile */
@media (max-width: 600px) {
  .lightbox-overlay { padding: 50px 8px 24px; }
  .lightbox-img, .lightbox-video {
    max-height: 65vh;
    border-width: 2px;
  }
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 38px; height: 38px; font-size: 1.3rem;
  }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev  { left:  8px; }
  .lightbox-next  { right: 8px; }
}
