.gallery-hero {
  padding: 82px 0 76px;
  color: #fff;
  background: #111;
}

.gallery-breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 42px;
  color: #aaa7a2;
  font-size: 0.82rem;
}

.gallery-breadcrumbs a:hover { color: #fff; }

.gallery-hero-grid {
  display: flex;
  flex-direction: column;
}

.gallery-hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(4.5rem, 9vw, 8.5rem);
}

.gallery-section { padding-block: 90px; }
.gallery-section + .gallery-section { border-top: 1px solid var(--line); }
.gallery-section:nth-child(even) { background: #ece8e0; }

.gallery-section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 34px;
}

.gallery-section-number {
  color: var(--orange-dark);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.gallery-section h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
}

.gallery-section-head p {
  margin-bottom: 8px;
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.photo-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0;
  background: #d9d5ce;
  border: 0;
  border-radius: 12px;
  cursor: zoom-in;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.photo-card:hover img { transform: scale(1.025); filter: contrast(1.03); }

.gallery-cta {
  padding-block: 80px;
  color: #fff;
  background: #171717;
}

.gallery-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.gallery-cta h2 { max-width: 680px; margin-bottom: 0; font-size: clamp(3rem, 5vw, 5rem); }
.gallery-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.gallery-lightbox {
  width: min(92vw, 920px);
  max-width: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.gallery-lightbox figure { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.gallery-lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 160ms ease-out;
  pointer-events: auto;
}
.gallery-lightbox figcaption { padding-top: 10px; color: #fff; text-align: center; }

.lightbox-close, .lightbox-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(17, 17, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 1.7rem; }
.lightbox-nav { top: 50%; width: 50px; height: 50px; font-size: 1.7rem; transform: translateY(-50%); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

@media (max-width: 900px) {
  .photo-grid, .photo-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .gallery-hero { padding: 52px 0 58px; }
  .gallery-breadcrumbs { margin-bottom: 30px; }
  .gallery-hero h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .gallery-section { padding-block: 64px; }
  .gallery-section-head { margin-bottom: 26px; }
  .photo-grid, .photo-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .photo-card { border-radius: 6px; }
  .photo-card::after { display: none; }
  .gallery-cta { padding-block: 64px 96px; }
  .gallery-cta-actions { width: 100%; }
  .gallery-cta-actions .button { flex: 1 1 150px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}
