.gallery-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.gallery-intro h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 10px 0 12px;
}

.gallery-intro p {
  color: var(--muted-2);
  margin: 0;
}

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

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  box-shadow: 0 16px 46px rgba(0,0,0,.20);
}

.gallery-card a {
  display: block;
  text-decoration: none;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .24s ease, filter .24s ease;
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: brightness(.86);
}

.gallery-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7,7,8,.72);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}

.gallery-caption h2 {
  margin: 0;
  color: var(--yellow);
  font-size: 18px;
  line-height: 1.2;
}

.gallery-placeholder {
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: 28px;
  padding: 52px;
  text-align: center;
  background: rgba(255,255,255,.04);
}

.gallery-placeholder h2 {
  color: var(--yellow);
  margin-top: 0;
}

.gallery-placeholder p {
  color: #d8d8d8;
}

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

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

  .gallery-placeholder {
    padding: 34px 22px;
  }
}