@keyframes first {
    0% {
        width: 0%;
    }
    50% {
        width: 80%;
    }
    100% {
        width: 50%;
    }
}
@-webkit-keyframes first {
    0% {
        width: 0%;
    }
    50% {
        width: 80%;
    }
    100% {
        width: 50%;
    }
}

.before_after {
    height: 90vh;
    max-width: 100%;
    overflow: hidden;
    width: 90vw;
}
.before_after.type_01 {
    max-height: 500px;
    max-width: 250px;
}
.before_after.type_02 {
    max-height: 420px;
    max-width: 220px;
}
/* .before_after.type_03 {
    max-height: 650px;
    max-width: 450px;
} */
.before_after.type_03 {
    max-height: 400px;
    max-width: 276px;
}
.before_after.type_04 {
    max-height: 430px;
    max-width: 360px;
}
.before_after.type_05 {
    max-height: 530px;
    max-width: 330px;
}
.before_after.type_06 {
    max-height: 400px;
    max-width: 300px;
}
.before_after.type_07 {
    max-height: 400px;
    max-width: 280px;
}
.before_after .after_block {
    background-size: cover;
    font-size: 0;
    height: 100%;
    margin: 0;
    position: relative;
    width: 100%;
}
.before_after .compare_block {
    animation: first 2s 1 normal ease-in-out 0.1s;
    -webkit-animation: first 2s 1 normal ease-in-out 0.1s;
    background-size: cover;
    border-right: 5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 10px 0 15px -13px #000;
    height: 100%;
    max-width: 98.6%;
    min-width: 0.6%;
    overflow: visible;
    position: absolute;
    bottom: 0;
    width: 50%;
}
.before_after_slider {
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    cursor: col-resize;
    height: 100vw;
    margin: 0;
    outline: none;
    padding: 0;
    position: relative;
    top: -100vw;
    left: 0;
    width: 100%;
}
.before_after_slider::-moz-range-track {
    background-color: transparent;
}
.before_after_slider::-ms-track {
    background-color: transparent;
    border: none;
    color: transparent;
    cursor: col-resize;
    height: 100vw;
    margin: 0;
    outline: none;
    padding: 0;
    position: relative;
    left: 0;
    top: -100vw;
    width: 100%;
}
.before_after_slider::-ms-fill-lower {
    background-color: transparent;
}
.before_after_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 100vw;
    opacity: 0;
    width: 0.5%;
}
.before_after_slider::-moz-range-thumb {
    -moz-appearance: none;
    height: 100vw;
    opacity: 0;
    width: 0.5%;
}
.before_after_slider::-ms-thumb {
    height: 100vw;
    opacity: 0;
    width: 0.5%;
}
.before_after_slider::-ms-tooltip {
    display: none;
}
.before_after .compare_block::before {
    background: url('/images/icon_comparision.png') no-repeat scroll 0 center transparent;
    background-size: contain;
    content: " ";
    float: right;
    height: 100%;
    margin-right: -34px;
    position: relative;
    top: 0;
    width: 64px;
}
