.carousel {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 1.5em auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.2em 0.5em;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 0.5em;
}
.carousel-btn.next {
  right: 0.5em;
}

/* Dots */
.carousel-dots {
  text-align: center;
  margin-top: 0.5em;
}

.carousel-dots button {
  border: none;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.carousel-dots button.active {
  background: #555;
}
