body {
    margin: 0;
    font-family: monospace;
}
.slider{
    
    max-width: 64vw;
    height: 510px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border: 0.5px solid #394259;
    border-radius: 10px;
}
.list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: 1s;
    
}
.list img{
    width: 1300px;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
}
.buttons{
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: none;
    justify-content: space-between;
}
.buttons button {
    width: 50px;
    height: 50px;
    border-radius: 505;
    background-color: #fff5;
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
}
.dots{
    position: absolute;
    bottom: 10px;
    color: #fff;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: none;
    justify-content: center;
    transition: 1s;
}
.dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 20px;
    border-radius: 20px;
}
.dots li.active {
    width: 30px;
}

/* Add this to your CSS file */
.slider .list {
    position: relative;
    height: 100%;
}

.slider .list .item {
    opacity: 0;
    transition: opacity 0.5s;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    pointer-events: none;
    will-change: opacity;
}

.slider .list .item.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

@media screen and ( max-width: 768px) { 
    .slider {
        height: 400px;
    }
    
}