.slider {
    position: relative;
    max-width: 800px; /* Set the width of the slider */
    margin: auto;
    overflow: hidden; /* Hide overflow to prevent images from spilling out */
}

.slides {
    display: flex; /* Align slides in a row */
    transition: transform 0.5s ease; /* Smooth transition effect */
}

.slide {
    min-width: 100%; /* Each slide takes the full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.slide img {
    width: 100%; /* Make images responsive */
}

.prev_button {
  float: left;
}

.slide_no {
  float: left;
}

slide_sep {
  float: left;
}

.slide_count {
  float: left;
}

.next_button {
  float: left;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

@media (max-width: 600px) {
    .slider {
        max-width: 100%; /* Allow slider to take full width on small screens */
    }
    .caption {
        font-size: 14px; /* Adjust caption size */
    }
}
