/* ==========================================================================
   Cinema Museum Fullscreen Lightbox & Gallery Styles
   ========================================================================== */

/* Fullscreen Lightbox Container */
#lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: #000;
  overflow: hidden;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Aspect ratio utility overrides for photographic perfection */
.aspect-\[3\/2\] {
  aspect-ratio: 3 / 2;
}
.aspect-\[16\/9\] {
  aspect-ratio: 16 / 9;
}
.aspect-\[16\/10\] {
  aspect-ratio: 16 / 10;
}

/* Ambient Blurred Backdrop Layer */
#lightbox-ambient-backdrop {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(70px) brightness(0.28) saturate(1.4);
  transform: scale(1.1);
  pointer-events: none;
  z-index: 1;
  transition: background-image 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  will-change: background-image, filter;
}

/* Vignette Shadow Overlay */
#lightbox-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Center Stage Main Image */
#lightbox-stage {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

#lightbox-image {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Auto-Hiding Heads-Up Display (HUD) */
.lightbox-hud {
  position: absolute;
  z-index: 25;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.lightbox-hud.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Top HUD Bar */
#lightbox-hud-top {
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

#lightbox-hud-top.is-hidden {
  transform: translateY(-100%);
}

/* Proximity Edge Navigation Zones */
.edge-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18vw;
  min-width: 100px;
  z-index: 20;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.edge-nav-zone.zone-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 2rem;
}

.edge-nav-zone.zone-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 2rem;
}

/* Directional Arrow Buttons (Revealed on proximity) */
.edge-nav-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
  pointer-events: auto;
}

.edge-nav-zone:hover .edge-nav-btn,
.edge-nav-btn.force-visible {
  opacity: 1;
  transform: scale(1);
}

.edge-nav-btn:hover {
  background: rgba(245, 158, 11, 0.9);
  border-color: #f59e0b;
  color: #07090e;
}

/* Bottom HUD (EXIF Telemetry & Docked Filmstrip) */
#lightbox-hud-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

#lightbox-hud-bottom.is-hidden {
  transform: translateY(100%);
}

/* Docked Thumbnail Strip */
.hud-filmstrip-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem;
  scrollbar-width: none;
  justify-content: center;
}
.hud-filmstrip-strip::-webkit-scrollbar {
  display: none;
}

.hud-thumb-btn {
  flex: 0 0 auto;
  width: 58px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.45;
  transition: all 0.25s ease;
  cursor: pointer;
  background: #000;
}

.hud-thumb-btn.active {
  border-color: #f59e0b;
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.hud-thumb-btn:hover:not(.active) {
  opacity: 0.8;
  border-color: rgba(255, 255, 255, 0.4);
}
