.comparison {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.comparison-label {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 7px;
    color: #fff;
    line-height: 1.285;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    position: absolute;
    bottom: 15px;
    transform: translateY(-50%);
    z-index: 10;
}

.comparison-label-before {
    left: 35px;
}

.comparison-label-after {
    right: 35px;
}

.comparison {
    touch-action: pan-y;
}

.comparison__image {
    user-select: none;
    object-fit: cover;
}

.comparison__image {
    width: 100%;
    height: 100%;
}
.ct-image {
    max-width: 100%;
}

.comparison__image--after {
    position: absolute;
    clip-path: inset(0% 0% 0% 50%);
    left: 0;
    max-width: 100%;
}

.comparison-handle {
    padding: 10px;
    position: absolute;
    height: 100%;
}

.comparison-handle-inside {
    background-color: #fff;
    padding: 10px;
    color: #f9f9f9;
    -webkit-box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
    box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
    border-radius: 50%;
    z-index: 20;
    height: 40px;
    width: 40px;
    cursor: pointer;
    user-select: none;
    position: relative;
    top: 50%;
    margin-top: -20px !important;
}

.comparison-handle-inside:before,
.comparison-handle-inside:after {
    content: " ";
    display: block;
    width: 3px;
    background: white;
    height: 9999px;
    position: absolute;
    left: 50%;
    margin-left: -1.5px;
    z-index: 30;
    -webkit-box-shadow: 0px 0px 12px rgba(51,51,51,0.5);
    -moz-box-shadow: 0px 0px 12px rgba(51,51,51,0.5);
    box-shadow: 0px 0px 12px rgba(51,51,51,0.5);
}

.comparison-handle-inside:before {
    bottom: 50%;
    margin-bottom: 20px;
}

.comparison-handle-inside:after {
    top: 50%;
    margin-top: 20px;
}

.handle-left-arrow, .handle-right-arrow {
    position: absolute;
    top: 50%;
    font-size: 12px;
    color: var(--body-color);
}

.handle-left-arrow {
    left: 50%;
    margin-left: -17px;
    transform: translateY(-50%) rotate(90deg);
    margin-top: -2px;
}

.handle-right-arrow {
    right: 50%;
    margin-right: -17px;
    transform: translateY(-50%) rotate(-90deg);
}
