/* ============================================================
   CAMP EIDER-DOWN · gallery.css
   ============================================================ */

/* ── GRID ── */
.photo-grid {
  columns: 4;
  column-gap: 0.75rem;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto 0;
}

@media (max-width: 700px) {
  .photo-grid { columns: 2; }
}

@media (max-width: 420px) {
  .photo-grid { columns: 1; }
}

.photo-grid__item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.photo-grid__item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.92);
}

.photo-grid__item:hover img {
  transform: scale(1.03);
  filter: saturate(1.1);
}

/* ── UPLOAD BUTTON ── */
.photo-upload-btn {
  display: inline-block;
  margin-top: 2.5rem;
  font-style: normal;
}

/* ── LIGHTBOX ── */



.lightbox__caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--parchment);
  opacity: 0.8;
  text-align: center;
  padding-top: 0.75rem;
  /* remove position, bottom, left, transform, z-index, white-space */
}


.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 35, 0.96);
}


.lightbox__img-wrap {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;  /* ← add this */
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 3;
  background: none;
  border: none;
  color: var(--parchment);
  cursor: pointer;
  font-family: var(--font-serif);
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
}

.lightbox__prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox__next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--parchment);
  opacity: 0.5;
}
