.gallery-page {
  min-height: 100svh;
  padding: 7rem 1.5rem 4rem;
  background: var(--charcoal);
}

.gallery-intro {
  max-width: 880px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.gallery-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin: 0 0 1.1rem;
}

.gallery-title em {
  color: var(--gold);
  font-style: italic;
}

.gallery-lead {
  font-family: 'Barlow', sans-serif;
  font-size: 1.02rem;
  color: var(--mortar-light, #b6ada0);
  line-height: 1.55;
  margin: 0;
}

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-cat {
  margin-bottom: 4rem;
}

.gallery-cat:last-child {
  margin-bottom: 0;
}

.gallery-cat-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(201,168,76,0.22);
}

.gallery-cat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  white-space: nowrap;
}

.gallery-cat-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0;
  line-height: 1.1;
}

.gallery-grid .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(201,168,76,0.16);
  background: #141010;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.92);
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-stage {
  max-width: min(92vw, 1400px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  color: var(--cream);
  background: rgba(20,15,10,0.72);
  border: 1px solid rgba(201,168,76,0.24);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(35, 28, 20, 0.92);
  border-color: rgba(201,168,76,0.45);
}

.lightbox-close:hover {
  transform: scale(1.04);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 72px;
  font-size: 2.2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

@media (max-width: 768px) {
  .gallery-page {
    padding: 6rem 1rem 2rem;
  }

  .gallery-intro {
    margin-bottom: 2.5rem;
  }

  .gallery-cat {
    margin-bottom: 3rem;
  }

  .gallery-cat-head {
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
  }

  .gallery-grid .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-nav {
    width: 48px;
    height: 58px;
    font-size: 1.9rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 380px) {
  .gallery-page {
    padding: 6rem 0.5rem 0.5rem;
  }

  .gallery-grid .gallery {
    gap: 0.4rem;
  }
}
