/* Before/After Image Comparison Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.img-comp-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    line-height: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    display: block;
    aspect-ratio: auto;
}

.img-comp-container > img {
    display: block;
    vertical-align: top;
    width: 100%;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.img-comp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.img-comp-overlay img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 50px;
    height: 50px;
    background-color: #ffc107;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.img-comp-slider:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #fff;
    margin-left: 3px;
}

.img-comp-slider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #fff;
    margin-left: -13px;
}

