.gallery-wrapper {
  display: flex;
  gap: 20px;
  height: 80vh;
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  margin: 2% 0%;
  position: relative;
}

.gallery-main .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.3s ease;
  font-size: 16px;
  pointer-events: auto;
}

.gallery-main .close-btn:hover {
  background: #000;
  transform: scale(1.1);
}

.gallery-aside {
  width: 110px;
  position: relative;
}

.gallery-thumbs {
  height: 100%;
}

.gallery-thumbs .swiper-slide {
  /* height: 90px !important; */
  opacity: 0.5;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #00648b;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-main {
  flex: 1 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid #00648b;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-overlay {
  margin: 2% 0%;
  padding: 20px;
}

.gallery-overlay .location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00648b;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 25px;
}

.gallery-overlay p {
  font-size: 19px;
  opacity: 1;
  line-height: 1.4;
  margin-bottom: 0px;
}

.gallery-wrapper .swiper-button-prev,
.gallery-wrapper .swiper-button-next {
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%);
  width: 50px !important;
  height: 149px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.3s ease;
  border: none;
}

.gallery-wrapper .swiper-button-prev svg,
.gallery-wrapper .swiper-button-next svg {
  background-color: #000 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: bold;
  font-family: swiper-icons;
  text-transform: none !important;
  letter-spacing: 0;
  /* font-feature-settings: ; */
  font-variant: initial;
  line-height: 1;
  padding: 7px;
}

.gallery-wrapper .swiper-button-prev {
  left: 0 !important;
  border-radius: 0 70px 70px 0;
}

.gallery-wrapper .swiper-button-next {
  right: 0 !important;
  border-radius: 70px 0 0 70px;
}

.gallery-main .thumb_main_div {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
}

/* ======================= Media Queries =================== */

@media (min-width: 0px) and (max-width: 574px) {
  .gallery-wrapper {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 10px;
  }

  .gallery-aside {
    width: 100%;
    height: 70px;
    order: 2;
  }

  .gallery-thumbs .swiper-slide {
    height: 60px !important;
  }

  .gallery-main {
    width: 100%;
    height: 300px;
    /* Give main image a fixed height on mobile */
    order: 1;
  }

  .gallery-main img {
    height: 200px;
    z-index: 1;
  }

  .gallery-overlay {
    margin: 2% 0%;
  }

  /* Adjust navigation size for smaller screens */
  .gallery-wrapper .swiper-button-prev,
  .gallery-wrapper .swiper-button-next {
    height: 80px !important;
    width: 35px !important;
  }

  .gallery-wrapper .swiper-button-prev svg,
  .gallery-wrapper .swiper-button-next svg {
    width: 24px;
    height: 24px;
    font-size: 10px !important;
  }

  .gallery-main .close-btn {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
  }

  .gallery-overlay p {
    font-size: 12px;
  }

  .gallery-overlay .location {
    font-size: 12px;
  }

  .gallery-main .close-btn {
    width: 25px;
    height: 25px;
  }
}

@media (min-width: 575px) and (max-width: 767px) {
  .gallery-wrapper {
    flex-direction: column-reverse;
  }

  .gallery-aside {
    width: 100%;
  }

  .gallery-main {
    width: 100%;
  }
}