.carousel {
  overflow: hidden;
  position: relative;
  border: 2px solid #fff;
  margin: 1.5rem auto;
  height: 400px;
  width: 400px;
}

.carousel button {
  cursor: pointer;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  transform: translateX(100%);
}

.carousel img.active {
  transform: translateX(0);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.carousel-dots button {
  padding: 2px 5px;
  margin: 0 1px;
  border-radius: 3px;
}

.carousel-dots .active-dot {
  border-color: lime;
}

.carousel-prev, 
.carousel-next {
  position: absolute;
  z-index: 2;
  top: 50%;
}

.carousel-prev {
  left: 10px; 
}

.carousel-next {
  right: 10px;
}