/* ===== LIGHTBOX =====
   Click any gallery image to open it full-size. Click outside, press Escape,
   or use the close button to dismiss. Arrow keys / arrow buttons navigate
   between images. Same brand language: warm dark, restrained typography.
*/
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: clamp(20px, 4vw, 60px);
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--paper-muted);
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--paper);
  z-index: 2;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 1px;
  background: var(--paper);
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }

.lightbox-close:hover {
  border-color: var(--gold);
  background: rgba(184, 137, 63, 0.1);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
  background: var(--gold);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--paper-muted);
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 300;
}

.lightbox-prev { left: clamp(20px, 3vw, 40px); }
.lightbox-next { right: clamp(20px, 3vw, 40px); }

.lightbox-nav:hover {
  border-color: var(--gold);
  background: rgba(184, 137, 63, 0.1);
  color: var(--gold);
}

.lightbox-counter {
  position: fixed;
  bottom: clamp(20px, 3vw, 32px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--paper-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 16px; }
  .lightbox-close { width: 40px; height: 40px; }
  .lightbox-close::before, .lightbox-close::after { width: 14px; }
}

body.lightbox-open {
  overflow: hidden;
}
