/* Gallery Section */
.gallery-grid {
  column-count: 3;
  column-gap: 1.2rem;
  padding: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 15px 20px;
  font-size: 1.1rem;
}

/* Lightbox */
.lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0px); /* start no blur */
  opacity: 0; /* hidden initially */
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  text-align: center;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

.lightbox-caption {
  color: white;
  font-size: clamp(0.5rem, 2vw, 1.5rem);
  font-style: italic;
  margin-top: 15px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}


/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {

}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}