/* Before/After: draggable comparison slider. --ba-pos controls the reveal split. */
#home2-painting-comparison .before-after {
    --ba-pos: 50%;
    position: relative;
    width: min(100%, 1120px);
    height: clamp(330px, 34vw, 460px);
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
}
#home2-painting-comparison .before-after__panel {
    position: absolute;
    inset: 0;
    margin: 0;
}
#home2-painting-comparison .before-after__panel--after {
    z-index: 1;
}
#home2-painting-comparison .before-after__panel--before {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}
#home2-painting-comparison .before-after__panel img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}
#home2-painting-comparison .before-after:after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: var(--ba-pos);
    width: 4px;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
}
#home2-painting-comparison .before-after__label {
    position: absolute;
    z-index: 4;
    top: 16px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 3px;
    background: rgba(255,255,255,.9);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
}
#home2-painting-comparison .before-after__label--before {
    left: 20px;
}
#home2-painting-comparison .before-after__label--after {
    right: 20px;
}
#home2-painting-comparison .before-after__control {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: var(--ba-pos);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
#home2-painting-comparison .before-after.is-dragging {
    cursor: ew-resize;
}
@media(max-width:760px) {
    #home2-painting-comparison .before-after {height: 280px;}
    #home2-painting-comparison .before-after__label {top: 10px; padding: 6px 8px; font-size: 10px;}
    #home2-painting-comparison .before-after__label--before {left: 10px;}
    #home2-painting-comparison .before-after__label--after {right: 10px;}
    #home2-painting-comparison .before-after__control {width: 34px; height: 34px; font-size: 12px;}
}

#home2-painting-comparison {background:#fff;}
#home2-painting-comparison .section-heading {max-width:1120px;margin:0 auto 70px;text-align:center;}
#home2-painting-comparison .section-heading h2 {margin:0 0 22px;}
#home2-painting-comparison .section-heading h2:after {display:none;}
#home2-painting-comparison .section-heading p {font-family:Lato;font-size:18px;font-weight:300;line-height:1.65;color:#535353;margin:0 0 14px;text-transform:none;letter-spacing:normal;}
#home2-painting-comparison .before-after:focus-visible {outline:3px solid #0d2567;outline-offset:4px;}
@media(max-width:760px){#home2-painting-comparison .section-heading{margin-bottom:35px;}}
