body main#galerie {
  padding: 2rem 1rem 4rem;
}

.gallery-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  text-align: center;
  color: #4b2c4f;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(75, 44, 79, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.gallery-card figure {
  margin: 0;
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.25rem 1.75rem;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card figcaption {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #3a1f42;
}

.gallery-card:hover,
.gallery-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 1.5rem 3rem rgba(75, 44, 79, 0.25);
}

.gallery-card:hover img,
.gallery-card:focus img {
  transform: scale(1.04);
  box-shadow: 0 1.4rem 2.6rem rgba(0, 0, 0, 0.22);
}

@media (max-width: 600px) {
  .gallery-card figure {
    padding: 1.25rem 1rem 1.5rem;
  }
}
