.gallery-header {
  text-align: center;
  margin: 48px 0 32px;
}
.gallery-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0 60px;
}
.gallery-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1);
}
.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.gallery-card-caption {
  padding: 12px 16px;
  font-weight: 500;
  text-align: center;
  color: #1e2f3a;
  background: white;
  border-top: 1px solid #f0e4d8;
}
.loading,
.no-images {
  text-align: center;
  padding: 60px;
  color: #5f6c75;
  font-size: 1.1rem;
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  background: none;
  border: none;
}
.close-modal:hover {
  color: #f26b4f;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .gallery-card img {
    height: 160px;
  }
}
