.gallery-section {
  padding: 80px 0;
  background: #f9f9f9;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.section-header {
  margin-bottom: 50px;
}

.sub-title {
  color: #ff6b00;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-heading {
  font-size: 2.2rem;
  color: #272b67;
  font-weight: 700;
  margin-bottom: 10px;
}

.masonry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
}

.masonry-item {
  flex: 0 1 calc(25% - 20px);
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
  filter: brightness(85%);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ff7a00;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1200px) {
  .masonry-item {
    flex: 0 1 calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .masonry-item {
    flex: 0 1 calc(50% - 20px);
  }
}

@media (max-width: 500px) {
  .masonry-item {
    flex: 0 1 100%;
  }
}
