/* Panova — Gallery Lightbox */

#gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(22, 8, 3, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  user-select: none;
  touch-action: pan-y;
}

#gallery-lightbox-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  color: #FAF6EF;
  border-bottom: 1px solid rgba(184, 151, 90, 0.20);
  z-index: 10;
}

.lightbox-plate-indicator {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #B8975A;
}

.lightbox-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(184, 151, 90, 0.35);
  color: #FAF6EF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #B8975A;
  color: #200C04;
  transform: scale(1.05);
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px 24px;
}

.lightbox-main-img {
  max-width: 90vw;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(184, 151, 90, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(32, 12, 4, 0.85);
  border: 1px solid rgba(184, 151, 90, 0.45);
  color: #FAF6EF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: #B8975A;
  color: #200C04;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(184, 151, 90, 0.35);
}

.lightbox-nav-prev { left: 24px; }
.lightbox-nav-next { right: 24px; }

@media (max-width: 640px) {
  .lightbox-nav-prev { left: 8px; }
  .lightbox-nav-next { right: 8px; }
  .lightbox-nav-btn { width: 44px; height: 44px; }
}

.lightbox-dossier {
  padding: 18px 28px;
  background: rgba(22, 8, 3, 0.95);
  border-top: 1px solid rgba(184, 151, 90, 0.20);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.lightbox-title {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 22px;
  color: #FAF6EF;
  font-weight: 600;
  line-height: 1.25;
}

.lightbox-desc {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: 13px;
  color: rgba(239, 228, 211, 0.85);
  line-height: 1.5;
}

.lightbox-exif-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
  border-top: 1px solid rgba(184, 151, 90, 0.15);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B8975A;
}
