.vpba {
    --vpba-black: #111111;
    --vpba-paper: #ffffff;
    --vpba-muted: #737373;
    --vpba-line: #e5e5e5;
    --vpba-accent: #111111;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

.vpba *, .vpba *::before, .vpba *::after { box-sizing: border-box; }
.vpba button, .vpba input { font: inherit; }
.vpba__slide[hidden] { display: none !important; }

.vpba__compare {
    position: relative;
    width: 100%;
    height: 540px;
    min-height: 220px;
    overflow: hidden;
    background: #d9d9d9;
    isolation: isolate;
    touch-action: pan-y;
}

.vpba__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.vpba__after {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--vpba-position, 50%);
    overflow: hidden;
    z-index: 2;
}

.vpba__after .vpba__image {
    width: var(--vpba-stage-width, 100vw);
    max-width: none;
}

/* Keep the after image exactly aligned with the before image. */
.vpba__after .vpba__image {
    width: 100vw;
}

.vpba__compare .vpba__after .vpba__image {
    width: calc(100% / (var(--vpba-position, 50) / 100));
    max-width: none;
}

/* Width correction is handled more robustly with clip-path below where supported. */
@supports (clip-path: inset(0)) {
    .vpba__after {
        width: 100%;
        overflow: visible;
        clip-path: inset(0 calc(100% - var(--vpba-position, 50%)) 0 0);
    }
    .vpba__compare .vpba__after .vpba__image {
        width: 100%;
    }
}

.vpba__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 8;
    opacity: 0;
    cursor: ew-resize;
}

.vpba__divider {
    position: absolute;
    z-index: 6;
    top: 0;
    bottom: 0;
    left: var(--vpba-position, 50%);
    width: 2px;
    background: #ffffff;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.vpba__handle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 2px solid #fff;
    background: rgba(0,0,0,.62);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 24px rgba(0,0,0,.3);
}

.vpba__handle-arrow {
    font-size: 27px;
    line-height: 1;
    font-family: Arial, sans-serif;
    margin-top: -2px;
}

.vpba__state,
.vpba__counter {
    position: absolute;
    z-index: 5;
    top: 16px;
    padding: 6px 9px;
    background: rgba(0,0,0,.56);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
}

.vpba__state--before { left: 16px; }
.vpba__state--after { right: 16px; }

.vpba__counter {
    top: auto;
    bottom: 16px;
    right: 16px;
    letter-spacing: .08em;
}

.vpba__place {
    --vpba-place-opacity: .62;
    --vpba-place-bg: #000000;
    position: absolute;
    z-index: 5;
    left: 16px;
    bottom: 16px;
    padding: 9px 12px;
    color: #fff;
    background-color: transparent;
    font-size: clamp(17px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
    pointer-events: none;
    isolation: isolate;
}

/* Elementor's color control keeps the base color; this layer provides editable transparency. */
.vpba__place::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--vpba-place-bg, #000000);
    opacity: var(--vpba-place-opacity, .62);
    z-index: -1;
}

.vpba__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 30px;
    align-items: start;
    padding: 17px 2px 4px;
    border-bottom: 1px solid var(--vpba-line);
}

.vpba__description {
    color: #1d1d1d;
    font-size: 15px;
    line-height: 1.55;
}

.vpba__source {
    color: var(--vpba-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: right;
    white-space: nowrap;
}

.vpba__source span { font-weight: 600; }
.vpba__source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.vpba__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 18px 0 0;
}

.vpba__nav-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.vpba__arrow,
.vpba__nav-item {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #1b1b1b;
    background: transparent;
    color: #1b1b1b;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}

.vpba__arrow {
    width: 44px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.vpba__nav-item {
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.vpba__arrow:hover,
.vpba__nav-item:hover { transform: translateY(-1px); }
.vpba__nav-item.is-active { background: #1b1b1b; color: #fff; }
.vpba__arrow:focus-visible,
.vpba__nav-item:focus-visible,
.vpba__range:focus-visible + .vpba__divider .vpba__handle {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.vpba__navigation--dots .vpba__nav-item {
    border: 0;
    min-width: auto;
    width: 26px;
    height: 38px;
    padding: 0;
    background: transparent !important;
}

.vpba__dot {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
    transition: transform .18s ease, opacity .18s ease;
}

.vpba__nav-item.is-active .vpba__dot { opacity: 1; transform: scale(1.55); }

.vpba__navigation--thumbnails { align-items: stretch; }
.vpba__navigation--thumbnails .vpba__nav-items { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: min(100%, 900px); padding: 2px; scrollbar-width: thin; }
.vpba__navigation--thumbnails .vpba__nav-item { height: 70px; width: 112px; padding: 0; position: relative; overflow: hidden; border-color: transparent; }
.vpba__navigation--thumbnails .vpba__thumb { position: absolute; inset: 0; }
.vpba__navigation--thumbnails .vpba__thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vpba__navigation--thumbnails .vpba__nav-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 6px; background: rgba(0,0,0,.68); color: #fff; font-size: 10px; line-height: 1.1; text-align: left; }
.vpba__navigation--thumbnails .vpba__nav-item.is-active { box-shadow: 0 0 0 2px #111; }

.vpba--editorial {
    padding: 14px;
    background: #101010;
    color: #fff;
}
.vpba--editorial .vpba__meta { border-color: #323232; padding-left: 2px; padding-right: 2px; }
.vpba--editorial .vpba__description { color: #f2f2f2; }
.vpba--editorial .vpba__source, .vpba--editorial .vpba__source a { color: #b8b8b8; }
.vpba--editorial .vpba__arrow, .vpba--editorial .vpba__nav-item { border-color: #e8e8e8; color: #fff; }
.vpba--editorial .vpba__nav-item.is-active { background: #fff; color: #111; }

.vpba--minimal .vpba__meta { border: 0; padding-top: 10px; }
.vpba--minimal .vpba__navigation { padding-top: 10px; justify-content: flex-start; }
.vpba--minimal .vpba__arrow { border: 0; width: 34px; }
.vpba--minimal .vpba__nav-item { border: 0; min-width: 28px; width: 28px; height: 32px; padding: 0; }
.vpba--minimal .vpba__nav-item.is-active { background: #111; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 767px) {
    .vpba__compare { height: 330px; }
    .vpba__place { left: 10px; bottom: 10px; font-size: 18px; }
    .vpba__state { top: 10px; }
    .vpba__state--before { left: 10px; }
    .vpba__state--after { right: 10px; }
    .vpba__counter { right: 10px; bottom: 10px; }
    .vpba__handle { width: 46px; height: 46px; }
    .vpba__meta { grid-template-columns: 1fr; gap: 6px; }
    .vpba__source { text-align: left; white-space: normal; }
    .vpba__navigation { gap: 6px; }
    .vpba__nav-items { gap: 4px; }
    .vpba__arrow { width: 38px; }
    .vpba__nav-item { min-width: 34px; height: 36px; padding: 0 8px; }
}
