/* Gallery page */

.gallery-page__main {
  min-height: 70vh;
}

.gallery-hero {
  padding: 2.25rem 0 1.25rem;
  background:
    radial-gradient(90% 120% at 10% 0%, rgba(107, 69, 104, 0.08), transparent 55%),
    linear-gradient(180deg, #f3efe8 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(46, 30, 45, 0.06);
}

.gallery-hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
}

.gallery-wall {
  padding: 1.5rem 0 4.5rem;
}

.gallery-wall__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-wall__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1218;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: 0 1px 2px rgba(28, 24, 22, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-wall__item:hover,
.gallery-wall__item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(36, 21, 31, 0.12);
  outline: none;
}

.gallery-wall__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-wall__item:hover img {
  transform: scale(1.04);
}

.gallery-wall__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.75rem 0.65rem;
  font-size: 0.78rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(18, 10, 16, 0.78));
  pointer-events: none;
}

.gallery-wall__empty {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--text-muted, #6e6468);
}

.gallery-page .lightbox__figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.gallery-page .lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-page .lightbox__caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-align: center;
  max-width: 40rem;
}

@media (max-width: 900px) {
  .gallery-wall__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-hero {
    padding: 1.25rem 0 0.85rem;
  }

  .gallery-hero__title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .gallery-wall {
    padding: 1rem 0 3rem;
  }

  .gallery-wall__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-wall__item {
    border-radius: 10px;
  }

  .gallery-wall__cap {
    font-size: 0.7rem;
    padding: 1.1rem 0.55rem 0.5rem;
  }

  .gallery-page .lightbox__figure {
    max-width: min(100vw, 96vw);
    max-height: 82vh;
    padding: 0 2.5rem;
  }

  .gallery-page .lightbox__figure img {
    max-height: 68vh;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev { left: 2px; }
  .lightbox__nav--next { right: 2px; }
}

@media (max-width: 380px) {
  .gallery-wall__grid {
    grid-template-columns: 1fr;
  }
}
