@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
}

.gallery-wrapper {
  overflow: hidden;
  max-width: 1200px;
  margin: 0px 70px 55px;
}

.galleries {
  min-height: 100vh;
  padding: 5px 0;
}

/* .gallery-container{
  width: 1170px;
} */

.container {
  width: 1170px;
}

.galleries .main-img {
  width: 45%;
  height: 50vh;
  margin: 0 auto 20px auto;
  border-radius: 12px;
}

.main-img img {
  width: 100%;
  height: 50vh;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
}

.gallery-list .gallery-item {
  user-select: none;
  display: block;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gallery-list .gallery-item .gallery-img {
  width: 100%;
  height: 167px;
  aspect-ratio: 16 /9;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-list .gallery-item .gallery-img:hover {
  transform: scale(1.02);
}

.gallery-wrapper .swiper-pagination-bullet {
  width: 15px;
  height: 15px;
}

.gallery-wrapper .gallery-slide-button {
  margin-top: -50px;
}

/* 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: 1200px) {
  .container {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .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;
  }

  .lightbox-counter {
    font-size: 14px;
    padding: 8px 16px;
  }

  .gallery-wrapper {
    margin: 0px 15px 40px;
  }

  .galleries .main-img {
    width: 90%;
  }

  .gallery-wrapper {
    margin: 0px 15px 40px;
    padding: 0 20px;
  }

  .gallery-wrapper .gallery-slide-button {
    width: 30px;
    height: 30px;
  }

  .gallery-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .gallery-wrapper .gallery-slide-button {
    margin-top: -35px;
  }
}

@media (max-width: 480px) {
  .galleries .main-img {
    width: 90%;
  }

  .gallery-wrapper {
    margin: 0px 15px 30px;
  }

  .gallery-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .gallery-wrapper .gallery-slide-button {
    margin-top: -30px;
  }
}
