/*Модальное окно*/
body.lock {overflow: hidden;}
.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    top:0;
    left:0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.8s ease 0s;
}
.modal.open{
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.modal.open .modal_content{
    opacity: 1;
    transform: perspective(600px) translate(0px, 0%) rotateX(0deg);
}

a.modal_area {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.modal_body {
    display:flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 30px 10px;
}
.modal_content {
    background-color: ghostwhite;
    color: #000;
    max-width: 800px;
    padding: 30px;
    position: relative;
    transition: all 0.8s ease 0s;
    opacity: 0;
    transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
}
.modal_content_image {padding: 0;}
.modal_image img {max-width: 100%; vertical-align: top;} 
.modal_title {font-size: 30px; margin-bottom: 1em;}
.close-modal {position: absolute; right: 10px; top: 10px; font-size: 20px; font-family: monospace;font-weight: bolder;}
.modal_text {}


@media (max-width:767px)
{ 
.modal_title {font-size: 20px; margin-bottom: 1em;}
}
/*Конец Модальное окно*/
