#gallery {
  padding: 4rem 0;
  background: linear-gradient(120deg, #e0eafc 0%, #a1c4fd 100%);
}

.page-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  color: #333;
  letter-spacing: 1px;
}

.gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(255,255,255,0.18);
  border-radius: 32px;
  box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.18);
  padding: 3rem 2rem;
  backdrop-filter: blur(14px);
}

.gallery-card {
  background: rgba(255,255,255,0.38);
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,0.22);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.gallery-card:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.22);
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(31,38,135,0.12);
  transition: filter 0.2s;
  filter: brightness(0.97) saturate(1.1);
}

.gallery-card:hover .gallery-img {
  filter: brightness(1.05) saturate(1.2) blur(1px);
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0.5rem;
    max-width: 98vw;
  }
  .gallery-img {
    height: 140px;
  }
}

@media (max-width: 600px) {
  .gallery-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0.2rem;
    border-radius: 16px;
  }
  .gallery-img {
    height: 200px;
  }
}