/* ==========================================================================
   lightbox — click a photo tile to focus its photo
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-box {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .lightbox-box {
  transform: scale(1);
}
.lightbox-box img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.lightbox-caption {
  padding: 20px 22px 24px;
}
.lightbox-caption h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.lightbox-caption p {
  color: var(--stone);
  font-size: 14px;
  line-height: 1.5;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  font-size: 26px;
  line-height: 1;
  color: var(--sand);
  background: rgba(27, 26, 22, 0.6);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}
