body.pr16 {
    padding-right: 16px;
}


#modal_container {
    font-size: 1.4rem;
}

.lock {
    overflow: hidden;
}

.modal-content {
    position: relative;
    display: none;
    width: 60%;
    width: 50%;
    max-height: 60%;
    margin: 0 0 0;
    padding: 80px 5% 2.5%;
    /*    border:2px solid #aaa;*/
    background: #fff;
    overflow: auto;
    border-radius: 1em 0 0 1em;
}


.modal-content h4 {
    margin-bottom: 1em;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ae074a;
    border-bottom: #ae074a thin solid;
}

.modal-content p {
    margin: 0 0 1em;
    padding: 0;
}

.modal-overlay {
    z-index: 15;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-color: rgba(0, 0, 0, 0.75);
}

.modal-wrap {
    z-index: 20;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.modal-open {
    color: #00f;
    text-decoration: underline;
}

.modal-open:hover {
    cursor: pointer;
    color: #f00;
}


.modal-content .modal-close.top-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.0rem;
    /**/
    color: #fff;
    background: #ae074a;
    border-radius: 2em;
    display: inline-block;
    padding: .1em 1em;
    line-height: 1.2;
}



.modal-close.end-close {
    color: #fff;
    background: #ae074a;
    border-radius: 2em;
    display: inline-block;
    padding: .1em 1.5em;
}

.modal-close:hover {
    cursor: pointer;
}

@media screen and (max-width: 1023px) {
    body.pr16 {
        padding-right: 0;
    }

    .lock {
        width: 100%;
/*        height: 100%;*/
        overflow: hidden;
        position: fixed;

    }
}

@media print,
screen and (max-width: 640px) {
    .modal-content {
        position: relative;
        display: none;
        width: 76%;
        max-height: 70%;
        margin: 10% 5% auto;
        padding: 15% 5% 5%;
        background: #fff;
        overflow: auto;
        border-radius: 1em;
    }

    .modal-content h4 {
        font-size: 1.8rem;
    }

    .modal-content .modal-close.top-close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 1.8rem;

    }
}
