.slider {
  position: relative;
  height:600px;
  overflow: hidden;
}
.slides {
  position: relative;
}
.slides .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease; /* smooth fade */
}
.slides .slide img {
  width: 100%;
  height:600px;
  object-fit:cover;
}
.slides .slide.active {
  opacity: 1;
  position: relative; /* active slide on top */
  z-index: 2;
}
.content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: 20px;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  border-radius: 6px;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 50%;
  z-index: 3;
}
.prev { left: 10px; }
.next { right: 10px; }
.dots {
  text-align: center;
  margin-top: 10px;
}
.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  display: inline-block;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: #333;
}


@media screen and (max-width:767px){
    .slider {
      height:200px;
    }
    .slider .slide img {
      height:200px;
    }
    .prev, .next {
      font-size: 18px;
      padding: 6px 15px;
    }
}