.slider {
    display: flex;
    width: 100%;
    height: 30vh; /* Set height to 30vh */
    overflow-x: scroll;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    position: relative; /* Enable positioning for child elements */
}

.slider > img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%; /* Ensure images fit the height */
    object-fit: cover;
    scroll-snap-align: center;
}

.controls {
    position: absolute; /* Position buttons absolutely within the slider */
    top: 20%; /* Center vertically */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%); /* Adjust for vertical centering */
    padding: 0 20px; /* Add some padding */
    z-index: 10; /* Ensure buttons are above images */
}

button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
}

button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.active {
    background-color: #717171;
}

@media (max-width: 770px) {
    .controls {
        display: none;
    }
}