/* ---------- GALLERY PAGE ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-card);
  border: 1px solid rgba(36,24,18,0.1);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36,24,18,0.75) 0%, transparent 55%);
  display: flex; align-items: flex-end;
  padding: 18px;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  color: var(--paper); font-size: 13.5px; font-weight: 600;
}

/* Bigger featured tile every 5th item */
.gallery-item.featured { grid-column: span 2; grid-row: span 2; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,13,9,0.92);
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 26px; right: 34px;
  color: var(--paper); font-size: 32px; cursor: pointer;
  font-weight: 300; line-height: 1;
}
.lightbox-close:hover { color: var(--gold-soft); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item.featured { grid-column: span 2; grid-row: span 1; }
}