img-comparison-slider {
    visibility: hidden;
}
  
img-comparison-slider [slot='second'] {
    display: none;
}
  
img-comparison-slider.rendered {
    visibility: inherit;
}
  
img-comparison-slider.rendered [slot='second'] {
    display: unset;
}

img-comparison-slider#slider-0-1 {
    width: 100%;
    max-height: 550px;
}

img-comparison-slider#slider-1-1 {
    height: 233px;
}

@media only screen and (max-width: 1200px) {
	img-comparison-slider#slider-1-1 {
        height: 190px;
    }
}

.img-comparison-compare-image {
    width: 100%;
}

.before, .after, .before-main, .after-main {
    margin: 0;
}

.before figcaption {
    background: #fff;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    color: #2e3452;
    opacity: 0.8;
    padding: 12px;
    position: absolute;
    top: 85%;
    transform: translateY(-50%);
    line-height: 100%;
}
.before figcaption {
    left: 12px;
}

.after figcaption {
    background: #fff;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    color: #2e3452;
    opacity: 0.8;
    padding: 12px;
    position: absolute;
    transform: translateY(-50%);
    line-height: 100%;
    top: 197px;
}
.after figcaption {
    right: 12px;
}

.before-main figcaption, .after-main figcaption {
    background: #fff;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    color: #2e3452;
    opacity: 0.8;
    padding: 12px;
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    line-height: 100%;
}
.before-main figcaption {
    left: 12px;
}

.after-main figcaption {
    background: #fff;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    color: #2e3452;
    opacity: 0.8;
    padding: 12px;
    position: absolute;
    /* top: 90%; */
    transform: translateY(-50%);
    line-height: 100%;
}
.after-main figcaption {
    right: 12px;
}

@media only screen and (min-width: 1201px) {
    img-comparison-slider#slider-0-1 {
        max-height: 655px;
    }
}
@media only screen and (max-width: 1200px) {
    .after figcaption {
        top: 163px;
    }
    .after-main figcaption {
        top: 305px;
    }   
}
@media only screen and (max-width: 991px) {
    .after figcaption {
        top: 161px;
    }
    .after-main figcaption {
        top: 413px;
    }   
}

