img {
    max-width: 100%
}

.comparison {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: auto;
    z-index: 1
}

.comparison li:last-child {
    left: 0;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0
}


.comparison li img {
    display: block;
}




.comparison.vertical {
    cursor: w-resize
}


.comparison.vertical li:last-child img {
    height: 100%;
    max-width: inherit;
 /*   background: #dee8e9;*/
}