.gallery-img-col img {
  width: 100%;
  cursor: pointer;
}

/* Gallery popup CSS */

#galleryModal #controls,
#galleryModal .mySlides {
  position: relative;
}

#galleryModal #controls button.close {
  background-color: transparent;
  border: none;
  position: absolute;
  z-index: 99;
  bottom: -8px;
}

#galleryModal #controls button.close img {
  width: 38%;
}

#controls {
  text-align: center;
}

#galleryModal .mySlides .numbertext {
  position: absolute;
  left: 30%;
}

.box-img {
  width: 40%;
  margin: auto;
  height: auto;
}

.box-img img {
  width: 100%;
}

#controls i {
  color: #fff;
  font-size: 1rem;
}

.next-btn {
  background-color: transparent;
  border: none;
}

.prev,
.next {
  padding: 6px;
  width: 35px;
  cursor: pointer;
  transition: 0.7s ease-in-out;
  border: none;
  background-color: transparent;
}

#galleryModal .modal-content {
  height: 100vh;
  padding-top: 28px;
  background-color: rgb(255 255 255 / 90%) !important;
}

.gallery-footer-controls {
  display: flex;
  justify-content: space-between;
  margin: auto;
}

/* #galleryModal #controls button.close {
  right: 25% !important;
} */

#galleryModal .modal-content {
  justify-content: center;
}

#galleryModal #controls button.close {
  right: 26%;
}

#galleryModal .modal-content {
  width: 100vw;
}

.gallery-footer-controls {
  width: 60%;
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*Mobile*/
/*#swipeArea {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}

#swipeArea img {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#swipeArea img.active {
  opacity: 1;
}*/

#swipeArea {
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#swipeArea img {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#swipeArea img.active {
  opacity: 1;
}

#instruction {
  position: absolute;
  bottom: 25px;
  left: 50%;
  width: 90%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 18px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  text-align: center;
}

#instruction.hidden {
  opacity: 0;
  pointer-events: none;
}

.desktop-gallery {
  display: block;
}

.mobile-gallery {
  display: none;
}

@media screen and (max-width: 767px) and (min-width: 0px) {
  .desktop-gallery {
    display: none;
  }

  .mobile-gallery {
    display: block;
  }
}
