.gallery-page {
  padding-bottom: 1.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(17, 59, 122, 0.18);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(20, 33, 60, 0.18);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  color: #36465a;
}

.gallery-card.featured img {
  height: 280px;
}

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

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

  .gallery-card img,
  .gallery-card.featured img {
    height: 240px;
  }
}
