/* Grid-based Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-image {
  display: block;
  width: 100%;
  padding-top: 60%; /* 3:2 aspect ratio */
  background-position: center;
  background-size: cover;
  position: relative;
}

.gallery-image img {
  display: none; /* fallback image hidden */
}

.gallery-caption {
  padding: 1rem;
  text-align: center;
}

.gallery-caption h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #333;
}

.gallery-caption p {
  margin: 0;
  color: #777;
  font-size: 0.875rem;
}


