/*--------------------------------------------------------------
# Block contents
--------------------------------------------------------------*/
.lp-img-comparison-slider {
    background-color: #F5F6F9;
    display: flex;
    padding-block: var(--margin-vertical-wider);
    padding-inline: 4vw;
}

.lp-img-comparison-slider .block-contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.img-comparison-slider-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    justify-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    gap: 40px;
    margin-top: 56px;
    margin-bottom: 70px;
}

.img-comparison-slider-card {
    max-width: 350px;
    width: 100%;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.10));
}

.img-comparison-slider-container {
    /* Definite size: everything inside is absolutely positioned to this box, so no
    dimension depends on content. The old grid + place-content: center left the
    size circular, which Chrome and Firefox resolved differently. */
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: white;
    position: relative;
    overflow: hidden;
    --position: 50%;
    max-width: 350px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.img-comparison-slider-container .img-container {
    height: 100%;
    max-height: 90vh;
    position: absolute;
    inset: 0;
    aspect-ratio: 16/9;
}

.img-comparison-slider-container .after-img-container {
    position: absolute;
    inset: 0;

    /* The before layer must paint above this one. Both are positioned now, so
    without an explicit order the later sibling in the DOM would win. */
    z-index: 0;
}

.img-comparison-slider-container .before-img-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.img-comparison-slider-container .before-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;

    /* Reveal by clipping, not by resizing. Setting width to --position would
    make object-fit: cover re-fit the photo at every drag position, scaling it
    against the after-image, which keeps a constant 100% box. */
    clip-path: inset(0 calc(100% - var(--position, 50%)) 0 0);
}

.img-comparison-slider-container .after-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.img-comparison-slider-container .img-comparison-slider-gauge {
    position: absolute;
    inset: 0;
    cursor: pointer;

    /* Must sit above both image layers or it never receives the drag. The line
    and button above it are pointer-events: none, so they do not intercept. */
    z-index: 5;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.img-comparison-slider-container .img-comparison-slider-line {
    position: absolute;
    inset: 0;
    width: .2rem;
    height: 100%;
    background-color: #fff;
    z-index: 10;
    left: var(--position);
    transform: translateX(-50%);
    pointer-events: none;
}

.img-comparison-slider-container .img-comparison-slider-button {
    position: absolute;
    z-index: 10;
    background-color: #fff;
    color: black;
    padding: .5rem;
    border-radius: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    top: 50%;
    left: var(--position);
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 1px 1px 1px hsl(0, 50%, 2% .5);
    border: 2px solid #35C6F4;
}

.img-comparison-slider-container .img-comparison-slider-button svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.after-img-message {
    position: absolute;
    right: 5%;
    opacity: 0;
}

.before-img-message {
    position: absolute;
    left: 5%;
    z-index: 1;
    opacity: 0;
}

.before-img-message.active,
.after-img-message.active {
    opacity: 1;
    border-radius: 14px;
    background: rgba(24, 37, 80, 0.80);
    padding: 4px 8px;
    color: white;
    font-family: Cabin;
    font-size: clamp(0.6875rem, 1vw, 0.75rem);
}

.small-blue-bar {
    width: 80px;
    height: 5px;
    background-color: #35C6F4;
    margin-top: 24px;
    margin-bottom: 24px;
}

.img-comparison-slider-cta,
.img-comparison-slider-cta:visited {
    margin: 0 auto;
    border-radius: 10px;
    padding: 14px 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0092B8;
    border: 2px solid #0092B8;
    color: white;
    cursor: pointer;
}

.img-comparison-slider-cta:hover {
    background-color: white;
    color: #0092B8;
}

/*--------------------------------------------------------------
# Background image
--------------------------------------------------------------*/
.lp-img-comparison-slider.anchor {
    position: relative;
}

.lp-img-comparison-slider__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Block editor fix
--------------------------------------------- */
.editor-styles-wrapper .lp-img-comparison-slider__cover {
    height: 100%;
}

.lp-img-comparison-slider__tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(4, 12, 36, 0.9) 0%, rgba(4, 12, 36, 0.7) 100%);
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

/* Default Font Style
--------------------------------------------- */
.lp-img-comparison-slider__header {
    color: #182550;
    font-weight: 600;
}

.lp-img-comparison-slider__subheader {
    color: #182550;
    margin-bottom: 0;
}

.img-comparison-slider-instructions-text {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 19px;
    text-align: center;
    color: rgba(24, 37, 80, 0.60);
    font-family: Cabin;
    font-size: clamp(0.8125rem, 1.2vw, 0.875rem);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    display: none;
}

.img-comparison-slider-card-title-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #35C6F4;
    font-family: Cabin;
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-top: 30px;
    padding-bottom: 20px;
    background-color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Dark Font Style
--------------------------------------------- */
.no_bg .lp-img-comparison-slider__header {
    color: #182550;
}

.no_bg .lp-img-comparison-slider__subheader {
    color: #182550;
}

@media screen and (max-width: 1400px) {

}

@media screen and (max-width: 1000px) {

}

@media screen and (max-width: 750px) {
}