/* ============================================
   Gallery & Lightbox Styles
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.gallery-grid__item {
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-grid__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

.gallery-grid__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 2rem 0.75rem 0.75rem;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-grid__item:hover figcaption {
  opacity: 1;
}

/* Day section headers in gallery */
.gallery-day {
  margin-bottom: 2rem;
}

.gallery-day__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: #0c7a8f;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ddd;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

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

.lightbox__prev {
  left: 0.5rem;
}

.lightbox__next {
  right: 0.5rem;
}

/* Empty state */
.gallery-empty {
  text-align: center;
  padding: 4rem 0;
  color: #6b6b6b;
}

.gallery-empty p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
