@charset "utf-8";
.img-slider {
  position: relative;
  max-width: 550px;
  margin: auto;
  margin-bottom: 1em;
  overflow: hidden; /* Hides the images outside the frame */
}

.img-slider-slides {
  display: flex;
  transition: transform 0.5s ease-in-out; /* This creates the sliding effect */
  width: 100%;
}

.img-slider-slides p {
  min-width: 100%; /* Each slide takes up the full width of the container */
  margin: 0;
  text-align: center;
  padding: 0 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.img-slider-slides img {
  width: 100%;
  height: auto;
  display: block;
}

/* Controls & Dots (Keep your previous styling) */
.img-slider-controller-left, .img-slider-controller-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: #333;
  padding: 15px;
  cursor: pointer;
  text-decoration: none;
}
.img-slider-controller-left:hover, .img-slider-controller-right:hover{
    text-decoration: none;
    color: #fff;
}
.img-slider-controller-left { left: -15px; }
.img-slider-controller-right { right: -15px; }
.img-slider-nav { text-align: center; }
.img-slider-nav a { 
  display: inline-block; width: 10px; height: 10px; 
  background: #ddd; border-radius: 50%; margin: 1px 3px; cursor: pointer;
}
.img-slider-nav a.active { background: #bbb; }
.img-slider .caption{font-size: 0.95em;    margin: 0.75em 1em 1em;}