.ics-container-16668 {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.ics-image-wrapper-16668 {
    position: relative;
    width: 100%;
}

.ics-image-wrapper-16668::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.ics-image-after-16668,
.ics-image-before-16668 {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ics-overlay-16668 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Important: Full width, we use clip-path to mask */
    height: 100%;
    overflow: hidden;
    z-index: 1;
    clip-path: inset(0 50% 0 0); /* Initial state: 50% visible */
}

/* Thin white vertical line */
.ics-divider-16668 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #fff;
    transform: translateX(-50%);
    z-index: 9; /* Under the handle, over the images */
    pointer-events: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.ics-label-before-16668,
.ics-label-after-16668 {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    border-radius: 3px;
    z-index: 10;
    pointer-events: none;
    line-height: 1.5;
    transition: opacity 0.2s ease;
}

.ics-label-before-16668 {
    left: 20px;
}

.ics-label-after-16668 {
    right: 20px;
}

.ics-input-16668 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    margin: 0;
    z-index: 20;
    cursor: ew-resize;
}

.ics-input-16668::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 0;
    height: 0;
}

.ics-input-16668::-moz-range-thumb {
    width: 0;
    height: 0;
    border: 0;
}

.ics-handle-16668 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ics-handle-16668::before,
.ics-handle-16668::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.ics-handle-16668::before {
    left: 8px;
    border-width: 6px 8px 6px 0;
    border-color: transparent #333 transparent transparent;
}

.ics-handle-16668::after {
    right: 8px;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #333;
}