* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
    position: relative;
    margin: auto;
    border-radius: 5px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  background-color: #15171a;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* 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 */
.prev:hover, .next:hover {
  background-color: #2a2f35;
}

.pres_prev:hover, .pres_next:hover {
  background-color: rgba(0,0,0,0.8);
}

.pres_next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.pres_prev, .pres_next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;  
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.pres_carousel_icon:hover {
  background-color: #2a2f35;
}

.pres_carousel_icon {
  height: 40px;
  width: 40px;
  margin: 10px;
  padding-top: 3px;
  padding-bottom: 5px;
  position: absolute;
  bottom: 0%;
  left: 0%;
  color: white;
  border-radius: 10px;
  background-color: transparent;
  text-align: center;
}

/* Carousel */
.pres_imagecarousel {
  height: 100%;
  display: flex;
  width: 100%;
  overflow: auto;
  font-size: 0; /* hack, remove extra space between flex items */
  scroll-snap-type: x mandatory;
}

.pres_imagecarousel img {
  margin-right: 20px;
  height: 90%;
  width: auto;
  border-radius: 10px;
  scroll-snap-align: start;
}

.pres_main_carousel_holder {
  padding: 10px; 
  width: 90%;
}

.pres_close_main_carousel_holder {
  padding: 10px; 
  width: 10%;
}

.pres_imagecarousel > div {
  margin-right: 20px;
  flex-shrink: 0;
  display: inline-flex;
  width: fit-content;
}

.pres_imagecarousel > div:last-child {
  margin-right: 0;
}

#pres_close_main_carousel {
  background-color: transparent; 
  float: inline-end; 
  height: fit-content; 
  width: fit-content;
}

@media (max-width: 768px) {
  
  .pres_imagecarousel img {
    margin-right: 5px;
    height: 95%;
    border-radius: 2px;
    flex-shrink: 0;
  }

  .pres_imagecarousel > div {
    margin-right: 5px;
  }

  .pres_main_carousel_holder {
    padding: 2px;
  }

  .pres_close_main_carousel_holder {
    padding: 10px 0px 0px 0px;
  }

  #pres_close_main_carousel {
    margin-bottom: 0px;
    padding: 0px;
    width: 100%;
    font-size: 12px;
  }
}

/* Caption text */
.text {
  color: #000000;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #000000;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.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;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.loader_spinner {
  border: 10px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid #f24646;
  width: 30px;
  height: 30px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

.pres_spinner {
  z-index: 9999; 
  display: none; 
  position: absolute; 
  left: 0; 
  right: 0; 
  top: 0; 
  bottom: 0; 
  margin: auto; 
  width: 100px; 
  height: 100px
}

.carousel_spinner {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.swap-icon {
  position: absolute;
  top: 40%;
  right: -5%;
  transform: translate(0%, 0%);
  font-size: 20px;
  color: #f24646;
  background: #15171a;
  padding: 8px;
  border-radius: 20px;
}

.swap-icon:hover {
  background: black;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}