/* ============================================================
   GALLERY LIGHTBOX — apertura immagini a tutto schermo + crediti
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: rgba(5, 2, 8, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: lbFade var(--t-med) var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-stage {
  position: relative;
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #0e0a18;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.95);
}
.lightbox-credit {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mid);
  text-align: center;
}
.lightbox-counter { color: var(--accent-bright); font-variant-numeric: tabular-nums; }

.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  max-width: 120px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  z-index: 2;
}
.lightbox-prev { left: 0; justify-content: flex-start; }
.lightbox-next { right: 0; justify-content: flex-end; }
.lightbox:hover .lightbox-nav { opacity: 0.85; }
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav:disabled { opacity: 0; pointer-events: none; }
.lightbox-nav svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.85)); }

.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 5, 18, 0.6);
  border: 0.5px solid var(--border-strong);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.lightbox-close:hover { color: var(--accent-bright); border-color: var(--accent); }
.lightbox-close svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .lightbox { padding: var(--space-3); }
  .lightbox-img { max-height: 70vh; }
  .lightbox-nav { opacity: 0.6; width: 26%; }
  .lightbox-nav svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
  .lightbox-nav { transition: none; }
}
