*{
    margin: 0;
    padding: 0;
  
}



.container{
    position: relative;
    margin: 0px auto 40px auto;
    width: min(1000px, 92%);
    height: 600px;
    background-color: #555;
}


.container .slide{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.container .slide .item{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-position: 50% 50%;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .4s ease, transform .4s ease;
}
.container .slide .item.active{
    opacity: 1;
    transform: scale(1);
}

/* legacy nth-child layout removed; only .item.active is visible */


/* extra positioning removed */









@keyframes slider {
    from{
        opacity: 0;
        transform: translate(0,100px);
        filter: blur(30px);
    }  
    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }    
}

.button-group{
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}


.button-group button{
    width: 50px;
    height: 50px;
    font-size: 25px;
    border: none;
    cursor: pointer;
    margin: 0 3px;
    transition: .6s;
}

.button-group .prev{
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.button-group  .next{

    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.button-group button:hover{
    background-color: #000;
    color: #fff;
}

@media (max-width: 900px){
    .container{
        width: 94%;
        height: 520px;
        margin-top: 80px;
    }
}

@media (max-width: 560px){
    .container{
        height: 420px;
    }
}
