/* Slideshow container */
.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 10px;
}

.slideshow-container .mySlides > img {
  max-height: 500px;
  margin: 0 auto;
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.mySlides {
  position: relative;
  display: flex;
  overflow: hidden;
  background-color: #62626237;
  touch-action: pan-y;
  user-select: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 0;
  z-index: 5;
  width: auto;
  height: 100%;
  padding: 16px;
  color: #009;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease,
    background-color 0.3s ease;
  border: none;
  border-radius: 0 3px 3px 0;
  background-color: transparent;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
@media (hover: hover) {
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #007fff;
  }
}

/* Slide number text (1/3 etc) */
.slide-number {
  color: #f2f2f2;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  z-index: 5;
}

/* The dots/bullets/indicators */
.dots-container {
  position: absolute;
  top: calc(100% - 30px);
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active {
  background-color: #009;
}

.dot:hover{
  background-color: #717171;
}

/* Zoom styles */
.zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.zoom-image {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  cursor: default;
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  transition: color 0.3s ease;
}

.zoom-close:hover {
  color: #007fff;
}

[data-zoomable] {
  position: relative;
  display: inline-block;
  width: auto;
  height: auto;
  cursor: zoom-in;
}

[data-zoomable] img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-zoomable]::after {
  content: "";
  position: absolute;
  top: calc(50% - 24px);
  left: calc(50% - 24px);
  z-index: 2;
  width: 48px;
  height: 48px;
  color: #009;
  background-image: url(../index/lupa.svg);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

/* Fading animation */
.fade__img {
  text-align: center;
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
