.before-after-widget-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.before-after-carousel-wrapper {
    position: relative;
    width: 100%;
}

.before-after-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    background: #f0f0f0;
}

.before-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.before-after-img-after {
    clip-path: polygon(var(--position) 0, 100% 0, 100% 100%, var(--position) 100%);
}

.before-after-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 2px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 32px;
}

.before-after-divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #fff;
    transform: translateX(-50%);
    z-index: -1;
}

.before-after-labels-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

.before-after-handle {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: ew-resize;
    border: none;
    padding: 0;
}

.before-after-handle:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.before-after-label {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    white-space: nowrap;
}

/* Custom Navigation */
.before-after-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #C47D5E;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.swiper-button-prev-custom.swiper-button-disabled,
.swiper-button-next-custom.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.swiper-pagination-custom {
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 2px;
}
