.acf-block-preview .twentytwenty-wrapper {
    height: 320px;
}
.acf-block-preview .before_after {
    height: 320px !important;
    width: 600px;
}
.acf-block-preview .twentytwenty-container img {
    height: 100%;
    width: 100%;
}

.before_after-text {
    color: #6A9DA3;
    text-align: center;
}
.twentytwenty-wrapper {
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: center !important;
    padding-bottom: 0px !important;
    overflow: hidden !important;
    width: 600px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.twentytwenty-container {
    overflow: visible !important;
    width: 100%;
}

.twentytwenty-handle {
}

.twentytwenty-handle:before {
    background: #fff !important;
    width: 2px !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    bottom: calc(100% - 46px) !important;
    /*height: 100% !important;*/
    margin-left: -2px !important;
    /*max-height: 500px !important;*/
}

.twentytwenty-handle:after {
    background: #fff !important;
    width: 2px !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    /*bottom: calc(100% - 46px) !important;*/
    /*height: 100% !important;*/
    margin-left: -2px !important;
    /*max-height: 500px !important;*/
}

/*.twentytwenty-handle-line {*/
/*    background: #6A9DA3 !important;*/
/*    width: 4px !important;*/
/*    -webkit-box-shadow: none !important;*/
/*    -moz-box-shadow: none !important;*/
/*    box-shadow: none !important;*/
/*    bottom: 0 !important;*/
/*    !*height: 100% !important;*!*/
/*    height: 999px;*/
/*    margin-left: -2px !important;*/
/*    left: 50%;*/
/*    position: absolute;*/
/*    display: block;*/
/*}*/
.twentytwenty-handle {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    width: 86px !important;
    height: 86px !important;
    border: none !important;
    margin-left: -43px !important;
    margin-top: -43px !important;
    backdrop-filter: blur(4px);
    /*top: 100% !important;*/
}
.twentytwenty-container img {
    width: 100% !important;
}
@media (min-width: 768px) {
    .twentytwenty-container img {
        min-height: 320px;
        object-fit: cover;
        object-position: center;
    }
}
.d-none {
    display: none;
}

.modal-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99;
    align-items: center;
    justify-content: center;
    transition: all .5s;
}

.modal-menu .pop_up {
    width: 100%;
    max-width: 800px;
    padding: 15px;
    background: #ffffff;
}

.modal-menu .modal_title {
    font-size: 28px;
    text-align: center;
    padding: 15px;
    background: #76AFB6;
    color: #ffffff;
    position: relative;
}

.modal-menu .modal_title .close {
    position: absolute;
    top: 50%;
    right: 15px;
    font-size: 22px;
    transform: translateY(-50%);
    color: #ffffff;
}

.modal-menu .content_modal {
    font-size: 20px;
    text-align: center;
    margin-top: 15px;
}

.modal-menu .item_border {
    display: flex;
    max-width: 640px;
    padding: 0 20px;
    font-size: 18px;
    position: relative;
    margin-top: 30px;
}

.modal-menu .item_border p {
    padding: 15px 15px 15px 110px;
    margin: 0;
    border: 1px solid #707070;
}

.modal-menu .item_border div:first-child p {
    order: 2;
    padding: 15px 110px 15px 15px;
}

.modal-menu .item_border div:first-child img {
    order: 1;
}

.modal-menu .item_border:nth-child(1) div p {
    order: 2;
    background: red;
}

.modal-menu .item_border:first-child div img {
    border: 5px solid red;
    order: 1;
}

.modal-menu .item_border img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.modal-menu .item_border img:last-child {
    position: absolute;
    right: 0;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
}

.modal-menu .contact_item {
    padding-left: 70px;
    position: relative;
    max-width: 550px;
    margin-top: 20px;
    font-size: 20px;
    padding-bottom: 30px;
}

.modal-menu .contact_item:after {
    content: '';
    width: 35px;
    height: 40px;
    background: url("<?= get_template_directory_uri() ?>/img/icon-modal.png") center no-repeat;
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    left: 20px;
}

.modal-menu a {
    text-decoration: underline;
    color: black;
}

@media (max-width: 767px) {
    .modal-menu .content_modal {
        font-size: 14px;
        text-align: center;
        margin-top: 15px;
    }

    .modal-menu .item_border {
        padding: 0 20px;
        font-size: 12px;
    }

    .modal-menu .item_border p {
        padding: 5px 15px 5px 110px;
    }

    .modal-menu .item_border div:first-child p {
        padding: 5px 110px 5px 15px;
    }

    .modal-menu .modal_title {
        font-size: 16px;
        padding: 5px 30px;
    }

    .modal-menu .contact_item {
        font-size: 14px;
    }

    .modal-menu .pop_up {
        padding: 5px;
    }
}