/* ===========================
   Gallery Modal
=========================== */

.gallery-modal .modal-dialog {
  max-width: 800px;
}

.gallery-modal .modal-header {
  border: none !important;
}

.gallery-modal .modal-content {
  /* background: rgba(18, 18, 18, 0.95); */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.gallery-modal .modal-body {
  padding: 0;
  position: relative;
  /* background: #000; */
}

/* Backdrop */

.gallery-modal.show {
  backdrop-filter: blur(8px);
}

/* ===========================
   Swiper
=========================== */

.gallery-modal .swiper {
  width: 100%;
  /* height: 80vh; */
}

.gallery-modal .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: #000; */
  overflow: hidden;
}

.gallery-modal .swiper-slide .modal_image_div {
  aspect-ratio: 1/1;
  width: 70%;
  height: 100%;
}

.gallery-modal .swiper-slide .modal_image_div .modal_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-modal .swiper-slide:hover .modal_img {
  transform: scale(1.02);
}

/* ===========================
   Navigation Buttons
=========================== */

.gallery-modal .swiper-button-prev,
.gallery-modal .swiper-button-next {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f48020;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
  aspect-ratio: 1/1;
  padding: 15px;
}

/* .gallery-modal .swiper-button-prev::after,
.gallery-modal .swiper-button-next::after {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
} */

.gallery-modal .swiper-button-prev,
.gallery-modal .swiper-button-next,
& ~ .swiper-button-prev,
&.swiper-rtl .swiper-button-next,
&.swiper-rtl ~ .swiper-button-next {
  color: #fff;
}

.gallery-modal .swiper-button-prev:hover,
.gallery-modal .swiper-button-next:hover {
  /* background: #ffffff; */
  transform: scale(1.08);
}

.gallery-modal .swiper-button-prev:hover::after,
.gallery-modal .swiper-button-next:hover::after {
  color: #000;
}

/* ===========================
   Pagination
=========================== */

.gallery-modal .swiper-pagination {
  bottom: 20px !important;
}

.gallery-modal .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: 0.3s;
}

.gallery-modal .swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 20px;
  background: #fff;
}

/* ===========================
   Close Button
=========================== */

.gallery-modal .btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 100;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-size: 15px;
  filter: invert(1);
  opacity: 1;
  transition: 0.3s ease;
  cursor: pointer;
}

.gallery-modal .btn-close:hover {
  transform: rotate(90deg);
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 991px) {
  .gallery-modal .swiper {
    height: 65vh;
  }

  .gallery-modal .swiper-button-prev,
  .gallery-modal .swiper-button-next {
    width: 45px;
    height: 45px;
  }

  .gallery-modal .swiper-button-prev::after,
  .gallery-modal .swiper-button-next::after {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .gallery-modal .modal-dialog {
    margin: 10px;
  }

  .gallery-modal .modal-content {
    border-radius: 14px;
  }

  .gallery-modal .swiper {
    height: 55vh;
  }

  /* .gallery-modal .swiper-button-prev,
  .gallery-modal .swiper-button-next {
    display: none;
  } */

  .gallery-modal .swiper-pagination {
    bottom: 12px !important;
  }

  /* .gallery-modal .btn-close {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
  } */
}
