.gallery-hero {
  background-position: center;
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 54px;
  align-items: end;
}

.gallery-intro h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
}

.gallery-intro p {
  padding: 28px;
  background: var(--soft-gray);
  border-top: 6px solid var(--yellow);
}

.gallery-grid {
  columns: 4 220px;
  column-gap: 16px;
  padding-top: 0;
}

.gallery-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--soft-gray);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: auto;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-item span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 9px 12px;
  color: var(--charcoal);
  background: var(--yellow);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-band {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.gallery-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../gallery/24.jpeg") center / cover;
  filter: grayscale(1);
  opacity: 0.14;
}

.gallery-band .section-pad {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
}

.gallery-band h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(2rem, 3.6vw, 3.7rem);
}

.gallery-band p {
  color: #d9dbd5;
}

@media (max-width: 940px) {
  .gallery-intro,
  .gallery-band .section-pad {
    grid-template-columns: 1fr;
  }
}
