* {
  box-sizing: border-box;
}

.slideshow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /*background-color: white;*/
  overflow: hidden;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.slide.fade {
  animation: fade 1s;
  display: flex;
}

.slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  font-size: 24px;
  color: white;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.text {
  position: absolute;
  bottom: 8px;
  width: 100%;
  color: #f2f2f2;
  font-size: 16px;
  background-color: rgba(0,0,0,0.5);
  padding: 10px;
  text-align: center;
}

.numbertext {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #f2f2f2;
  font-size: 14px;
}

.dots-container {
  text-align: center;
  margin-top: 12px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

@keyframes fade {
  from { opacity: .4 }
  to { opacity: 1 }
}
