.modal{
    top: -120%;
    z-index: 50;
    opacity: 0;
    width: 100%;
    height: 100%;   
    display: flex;
    position: fixed;
    overflow-y: scroll;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    -webkit-transition : all .6s ease;
}

.modal-content{
    width: 80%;
    height: 90%;
    min-width: 750px;
    display: flex;
    align-items: center;
    justify-content: center;    
    background-color: rgba(255,255,255,.6);
}

.modal-body{
    width: 96%;
    height: 93.5%;
    display: flex;
    position: relative;
    align-items: center;    
    background-color: white;
    justify-content: space-around;
}

.modal-body .item-content{
    width: 100%;
    height: 70%;
    display: flex;    
    position: relative;
    align-items: center;    

}

.modal-body .item-content > img{
    width: 350px;
    height: 350px;
    margin-left: -4px;    
    background-color: #f1eff0;    
}

.modal-body .description{
    width: 60%;
    height: 100%;    
    display: flex;
    position: relative;
    flex-direction: column;
}

.description h1{
    margin-top: 20px;
    margin-left: 30px;
    font-family: 'Poppins';    
    font-weight: 500;
}

.description h2{
    font-family: 'Poppins';
    font-weight: 400;
    margin-top: 4%;
    margin-left: 30px;
    color: #969696;
}

.description p{
    font-size: 15px;
    margin-top: 8%;
    margin-left: 30px;
    margin-right: 30px;
    text-align: justify;
    font-family: 'Poppins';
    font-weight: 300;
    color: #444854;    
}

.close-modal img,.close-modal-desktop img{
    z-index: 3;
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    width: 30px !important;
    height: 30px !important;
    outline: none;
    cursor: pointer;
    background-color: transparent !important;
}

.close-modal{
    display: none;
}

.modal .number{
    display: flex;    
    margin-left: 30px;
    position: absolute;
    bottom: 5%;
}

.modal .number button{
    color: white;
    border: none;
    outline: none;    
    cursor: pointer;
    padding: 0 10px;    
    font-weight: 600;
    margin-left: 10px;
    border-radius: 19px;
    font-family: 'Poppins';    
    background-color: #f68e20;
}

.modal .number input{
    width: 30px;
    height: 32px ;
    border-radius: 3px;
    border: 1px solid lightgrey;
    text-align: center;
    font-family: 'Poppins';
    font-weight: 500;
    color: #444854;
    outline: none;
}

.controls{
    margin-left: 5px;
}

.controls > a{
    width: 14.5px;    
    display: flex;
    height: 14.5px;
    cursor: pointer;
    color: #444854;
    align-items: center;
    font-family: 'Poppins';    
    justify-content: center;
    border: 1px solid lightgrey;  
    -webkit-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
}

.modal .counters{
    display: flex;
}

.modal .buttons{
    display: flex;
    align-items: center;
}

.modal .buttons button{
    height: 29px;
}

@media(max-width:870px){
    .close-modal-desktop{
        display: none;
    }

    .close-modal{
        display: unset;
    }

    .modal-content{
        width: 80%;
        min-width: 250px;
    }

    .modal-body .item-content{
        flex-direction: column;
        overflow-y: scroll;
        height: 100%;
    }
    .modal-body .item-content > img {
        width: 250px;
        height: 250px;
        margin-top: 40px;
    }

    .modal-body .description{
        width: 100%;
    }

    .description h1, .description h2{
        text-align: center;
        margin-left: 0;
    }

    .description p{
        margin-top: 10px;
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .modal .number{
        width: 100%;
        margin-left: 0;
        position: unset;
        margin-top: 40px;
        margin-bottom: 40px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .modal .counters{
        margin-bottom: 10px;
    }

}

@media(max-width:550px){
    .modal-content{
        width: 100%;
    }
}

