.slideshow {
  position: relative;
}

.slides {
  display: none;
}

.slide-img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  border-radius: 6px;
  aspect-ratio: 3/2;
  pointer-events: none;
}

.slideshow .prev,
.slideshow .next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.slideshow .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.slideshow .prev:hover,
.slideshow .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slideshow .numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.slideshow .slide-caption {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: #fff;
  border-radius: 6px;
}

.slideshow .thumbnails {
  overflow-x: scroll;
  white-space: nowrap;
  margin-top: 6px;
}

.slideshow .thumbnails:after {
  content: "";
  display: table;
  clear: both;
}

.slideshow .thumbnails .thumbnail {
  display: inline-block;
  width: 10rem;
  border: transparent;
}

.thumbnail-img {
  opacity: 0.6;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 6px;
  width: 100%;
  height: 7rem;
  object-fit: cover;
}

.thumbnails .active,
.thumbnail-img:hover {
  opacity: 1;
}

.slideshow-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.slideshow-modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 920px;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#slideshow-img {
  width: 100%;
  height: auto;
}

.slideshow-modal-close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.slideshow-modal-close-button:hover,
.slideshow-modal-close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
