.gallery {
  padding: 100px 20px;
  background: #f8f9f7;
}

.gallery-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 10px;
  color: #1f2933;
}

.gallery-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

.gallery-grid {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: zoomIn 0.8s ease;
}

.gallery-grid img:hover {
  transform: scale(1.06);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

/* Lightbox popup */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  animation: scaleUp 0.5s ease;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

/* Animations */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.85);
  }
  to {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid img {
    height: 220px;
  }
}
