/* WATER FILTRATION PLANT LAHORE */
.water-container {
  max-width: 1020px;
  margin: 0 auto;
}

.row {
  justify-content: center;
}

.row .waterCard-item {
  width: 316px;
  height: 237px;
  margin: 15px auto;
}

.waterCard-item .waterCart-image {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
}

/* Lightbox Modal Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-image.loaded {
  opacity: 1;
}

/* Close Button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Navigation Buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Loading Spinner */
.lightbox-loader {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 991px) {
  .water-filtration .row {
    justify-content: center;
  }

  .water-filtration .col-lg-4.col-md-6.col-12 {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
  }

  .row .waterCard-item {
    width: 280px;
    height: 210px;
  }
}

@media (max-width: 768px) {
  .water-filtration .col-12 {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .row .waterCard-item {
    width: 90%;
    max-width: 316px;
    height: auto;
    aspect-ratio: 316 / 237;
  }
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: 10px;
    right: 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .row .waterCard-item {
    width: 95%;
    max-width: 300px;
  }

  .water-filtration h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}
