/* Slideshow & Thumbnails */
.modal-slideshow h5, .modal-slideshow p, .slideshow h5, .slideshow p, .single-view h5, .single-view p, .thumbnails-view h5, .thumbnails-view p {
  font-size: var(--font-size-4);
}
.modal-slideshow figcaption, .slideshow figcaption, .single-view figcaption, .thumbnails-view a figcaption {
  line-height: 15px;
  text-align: center;
}
.modal-slideshow h5, .thumbnails-view h5, .single-view h5, .slideshow h5 {
  font-weight: 500;
}

/* Modal Slideshow */
.modal-slideshow {
  position: relative;
  width: 100%;
  margin: 0 auto;
  position: fixed;
  top: 0;
  height: 100vh;
  background-color: #fff;
  overflow: hidden;
  display: none;
  flex-flow: row nowrap;
  align-items: center;
  left: 0;
}
.modal-slideshow button.close {
  position: absolute;
  background-image: url('../images/close-symbol.svg');
  background-repeat: no-repeat;
  background-size: 55% auto;
  background-position: center;
  width: 20px;
  height: 20px;
  top: 20px;
  right: 20px;
  padding: 20px;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  z-index: 9999;
}
.modal-slideshow button.close:hover {
  background-image: url('../images/close-symbol-hover.svg');
}
.modal-slideshow .figure-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 8fr 1fr;
  justify-items: center;
  margin: 0 auto;
}
.modal-slideshow figure {
  max-width: 2000px;
}
.modal-slideshow figure img {
  max-height: calc(100vh - 150px);
  width: calc(100vw - 150px);
  object-fit: contain;
  /* width: 100%;
  min-width: 100%; */
  /* height: auto !important; */
  padding: 30px;
}
/* modal-slideshow pagination */
.modal-slideshow .arrow {
  background-size: 100% 100%;
  width: 12.5px;
  height: 25px;
  /* top: 40%; */
}
.modal-slideshow .next, .modal-slideshow .prev {
  width: 80px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  background-color: transparent;
  border: 0;
}
.modal-slideshow .next .arrow {
  background-image: url('../images/arrow-right.svg');
  align-self: center;
}
.modal-slideshow .prev .arrow {
  background-image: url('../images/arrow-left.svg');
  align-self: center;
}
.modal-slideshow .next:hover .arrow {
  background-image: url('../images/arrow-right-hover.svg');
}
.modal-slideshow .prev:hover .arrow {
  background-image: url('../images/arrow-left-hover.svg');
}


/* Slideshow */
.slideshow {
  position: relative;
  max-width: 1800px;
  margin: 0 auto;
}
.slideshow .figure-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 8fr 1fr;
  justify-items: center;
}
.slideshow figure {
  max-width: 2000px;
}
.slideshow figure img {
  /* max-height: 800px; */
  object-fit: contain;
  width: 100%;
  height: auto !important;
}
.slideshow figcaption {
  margin: 40px 0;
  font-size: var(--font-size-4);
  text-align: center;
}
/* Slideshow pagination */
.slideshow .arrow {
  background-size: 100% 100%;
  width: 12.5px;
  height: 25px;
}
/* .slideshow .prev {
  justify-self: start;
}
.slideshow .next {
  justify-self: end;
} */
.slideshow .next, .slideshow .prev {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  /* align-items: center; */
  padding: 20px;
  cursor: pointer;
  background-color: transparent;
  border: 0;
}
.slideshow .next .arrow {
  background-image: url('../images/arrow-right.svg');
  align-self: flex-end;
}
.slideshow .prev .arrow {
  background-image: url('../images/arrow-left.svg');
  align-self: flex-start;
}
.slideshow .next:hover .arrow {
  background-image: url('../images/arrow-right-hover.svg');
}
.slideshow .prev:hover .arrow {
  background-image: url('../images/arrow-left-hover.svg');
}

/* Thumbnails view */
.thumbnails-view {
  /* display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-items: center;
  gap: 35px; */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.thumbnails-view a {
  display: flex;
  flex-flow: column;
  text-decoration: none;
  /* height: 100%; */
  max-width: 200px;
  margin: 20px;
  cursor: pointer;
}
.thumbnails-view a > * {
  pointer-events: none;
}
.thumbnails-view a:hover figure img {
  box-shadow: 0 0 2px 0 rgba(107, 107, 107, 0.6);
}
.thumbnails-view a:hover figcaption {
  color: #999999;
}
.thumbnails-view a figure {
  /* margin-bottom: 20px; */
  padding-bottom: 20px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  height: 100%;
}
.thumbnails-view a figure img {
  object-fit: contain;
  min-width: 200px;
  max-height: 200px;
}
.thumbnails-view figcaption {
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  margin-top: auto;
}
/* Thumbnails view pagination */
.thumbnails-pagination {
  padding: 50px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}
.thumbnails-pagination .next-page, .thumbnails-pagination .prev-page {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  width: 20px;
  height: 10px;
}
.thumbnails-pagination a {
  margin-right: 15px;
  font-size: var(--font-size-4);
}
.thumbnails-pagination .next-page {
  background-image: url('../images/arrow-right.svg');
}
.thumbnails-pagination .prev-page {
  background-image: url('../images/arrow-left.svg');
}
.thumbnails-pagination .next-page:hover {
  background-image: url('../images/arrow-right-hover.svg');
}
.thumbnails-pagination .prev-page:hover {
  background-image: url('../images/arrow-left-hover.svg');
}

@media (max-width: 780px) {
  /* .slideshow .figure-container {
    grid-template-columns: .5fr 10fr .5fr;
  }
  .slideshow .next, .slideshow .prev, .single-view .next, .single-view .prev {
    width: 25px;
    padding: 0px;
  }
  .slideshow .arrow, .single-view .arrow {
    width: 8.5px;
    height: 17px;
  } */
  .thumbnails-view {
    margin-top: 20px;
  }
  .thumbnails-view a {
    max-width: 43% !important;
    min-width: 100px;
    margin: 10px;
  }
  .thumbnails-view a figure img {
    object-fit: contain;
    min-width: auto;
    max-height: 300px;
  }
  /* .modal-slideshow .figure-container a {
    margin-top: -100px;
  } */
  .modal-slideshow figure img {
    width: calc(100vw - 80px);
    padding: 10px 0;
    /* margin-top: -50px; */
  }
  .modal-slideshow .arrow {
    width: 10px;
    height: 10px;
  }
  .modal-slideshow .next, .modal-slideshow .prev {
    width: 20px;
  }
  .thumbnails-view a {
    max-width: 130px;
    margin: 10px;
  }

  .slideshow .figure-container {
    grid-template-columns: .7fr 8fr .7fr;
  }
  .slideshow figure img {
    width: calc(100vw - 80px);
    padding: 10px 0;
    /* margin-top: -50px; */
  }
  .slideshow .arrow {
    width: 10px;
    height: 10px;
  }
  .slideshow .next, .slideshow .prev {
    padding: 0;
  }
}

/* @media (max-width: 700px) {
  .single-view .next, .single-view .prev {
    width: 50px;
    padding: 10px;
  }
  .single-view .arrow {
    width: 8.5px;
    height: 17px;
  }
  .thumbnails-view a {
    max-width: 130px;
    margin: 10px;
  }
} */