* { box-sizing: border-box; }
body {
  font-family: Verdana, sans-serif;
  margin: 0;
  background-color: #fff;
  text-align: center;
}

.mySlides { display: none; }

/* Center the slideshow on the page */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: 40px auto;
}

/* --- IMAGE STYLING --- */
.mySlides img {
  width: 50%;
  max-width: 800px;
  height: auto;
  display: inline-block;
  border-radius: 6px;
}

/* --- PREV / NEXT BUTTONS --- */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 24px;
  padding: 16px;
  cursor: pointer;
  transition: 0.3s;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  border-radius: 50%;
}

/* Dynamically align arrows to image edges */
.prev {
  left: calc(50% - (50% / 2) - 40px);
}
.next {
  right: calc(50% - (50% / 2) - 40px);
}

/* Hover effects */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dots-container {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

/* Dots (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; }

/* Fade animation */
.slidefade {
  animation-name: slidefade;
  animation-duration: 1.5s;
}

@keyframes slidefade {
  from { opacity: .4 }
  to { opacity: 1 }
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .mySlides img {
    width: 80%;
  }
  .prev {
    left: calc(50% - (80% / 2) - 25px);
  }
  .next {
    right: calc(50% - (80% / 2) - 25px);
  }
}
@media (max-width: 400px) {
  .mySlides img {
    width: 90%;
  }
  .prev, .next {
    font-size: 18px;
    padding: 10px;
  }
  .prev {
    left: calc(50% - (90% / 2) - 20px);
  }
  .next {
    right: calc(50% - (90% / 2) - 20px);
  }
}