/* ── Click-to-enlarge lightbox for project hero + gallery photos ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 19, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-figure {
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0;
}
.lightbox-figure img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-caption {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0.85;
  max-width: 70ch;
  min-height: 1.2em;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  z-index: 201;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(253, 250, 247, 0.4);
  background: rgba(253, 250, 247, 0.1);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(253, 250, 247, 0.28);
  border-color: rgba(253, 250, 247, 0.85);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  z-index: 201;
}

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; }
}
