/* =========================================================
   BEFORE / AFTER SLIDER
   ========================================================= */

.ba-slider-container-e5435b53 {
    --ba-position: 50%;

    position: relative;
    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    user-select: none;
    -webkit-user-select: none;

    touch-action: pan-y;

    cursor: ew-resize;

    isolation: isolate;

    background: #eeeeee;
}


/* =========================================================
   IMAGE LAYERS
   ========================================================= */

.ba-image-wrapper-e5435b53 {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    margin: 0;
    padding: 0;
}


.ba-image-wrapper-e5435b53 img {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    display: block;

    margin: 0;
    padding: 0;

    pointer-events: none;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}


/* AFTER */

.ba-after-e5435b53 {
    z-index: 1;
}


/* BEFORE */

.ba-before-e5435b53 {
    z-index: 2;

    width: var(--ba-position);
}


/* =========================================================
   BEFORE IMAGE
   Keep image size equal to AFTER while wrapper gets clipped
   ========================================================= */

.ba-before-e5435b53 img {
    width: 100%;
    height: 100%;
}


/* =========================================================
   HANDLE
   ========================================================= */

.ba-handle-e5435b53 {
    position: absolute;

    top: 0;

    left: var(--ba-position);

    width: 0;
    height: 100%;

    z-index: 5;

    pointer-events: none;
}


/* Vertical line */

.ba-handle-e5435b53::before {
    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 2px;
    height: 100%;

    margin-left: -1px;

    background-color: #ffffff;

    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);

    pointer-events: none;
}


/* =========================================================
   HANDLE BUTTON
   ========================================================= */

.ba-handle-button-e5435b53 {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 44px;
    height: 44px;

    transform: translate(-50%, -50%);

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25);

    z-index: 6;

    cursor: ew-resize;

    pointer-events: auto;

    touch-action: none;

    user-select: none;
    -webkit-user-select: none;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   ARROWS
   ========================================================= */

.ba-handle-button-e5435b53::before,
.ba-handle-button-e5435b53::after {

    content: '';

    position: absolute;

    top: 50%;

    width: 0;
    height: 0;

    transform: translateY(-50%);

    border-style: solid;
}


/* Left arrow */

.ba-handle-button-e5435b53::before {

    left: 10px;

    border-width: 6px 7px 6px 0;

    border-color:
        transparent #333333 transparent transparent;
}


/* Right arrow */

.ba-handle-button-e5435b53::after {

    right: 10px;

    border-width: 6px 0 6px 7px;

    border-color:
        transparent transparent transparent #333333;
}


/* =========================================================
   HANDLE HOVER
   ========================================================= */

.ba-handle-button-e5435b53:hover {

    transform:
        translate(-50%, -50%)
        scale(1.08);

}


/* =========================================================
   LABELS
   ========================================================= */

.ba-label-e5435b53 {

    position: absolute;

    bottom: 20px;

    z-index: 7;

    padding: 7px 13px;

    background: rgba(255, 255, 255, 0.92);

    color: #333333;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.2;

    border-radius: 4px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15);

    pointer-events: none;

    white-space: nowrap;

    user-select: none;
}


/* BEFORE label */

.ba-label-before-e5435b53 {
    left: 20px;
}


/* AFTER label */

.ba-label-after-e5435b53 {
    right: 20px;
}


/* =========================================================
   RANGE
   Accessibility / keyboard control only
   ========================================================= */

.ba-range-slider-e5435b53 {

    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;

    overflow: hidden;

    margin: 0;
    padding: 0;
}


/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

.ba-slider-container-e5435b53:focus-visible {

    outline: 2px solid #ffffff;
    outline-offset: -2px;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .ba-slider-container-e5435b53 {

        aspect-ratio: 4 / 3;

    }

    .ba-handle-button-e5435b53 {

        width: 40px;
        height: 40px;

    }

    .ba-label-e5435b53 {

        bottom: 12px;

        padding: 6px 10px;

        font-size: 11px;

    }

    .ba-label-before-e5435b53 {

        left: 12px;

    }

    .ba-label-after-e5435b53 {

        right: 12px;

    }

/* Rounded corners */
.ba-slider-container-e5435b53 {
    border-radius: 20px;
    overflow: hidden;
}

}