/* Custom styles for the before-after slider */
.image-comparison {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    cursor: ew-resize;
    aspect-ratio: 16 / 9; /* Maintains 16:9 ratio regardless of image height */
    background-color: #000; /* Optional: avoids white space during load */
}

.image-comparison img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevent image distortion */
    display: block;
    pointer-events: none;
}

.image-comparison .before-image img {
    clip-path: inset(0 50% 0 0); /* Left half visible */
}

.image-comparison .after-image img {
    clip-path: inset(0 0 0 50%); /* Right half visible */
}

.image-comparison .divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2;
    pointer-events: none;
    transform: translateX(-50%);
}

.image-comparison .divider::before,
.image-comparison .divider::after {
    position: absolute;
    top: 10px;
    color: goldenrod;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}

.image-comparison .divider::before {
    content: 'Before';
    left: -60px;
}

.image-comparison .divider::after {
    content: 'After';
    right: -60px;
}

.vertical-img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.p-text-hero {
    color: #13b96c; /* fallback solid color */
    /* background: linear-gradient(90deg, rgba(105,237,220,1) 12%, rgba(19,185,108,1) 31%, rgba(221,143,74,1) 57%, rgba(219,99,148,1) 90%); */
    background: -webkit-linear-gradient(90deg, rgba(105,237,220,1) 12%, rgba(19,185,108,1) 31%, rgba(221,143,74,1) 57%, rgba(219,99,148,1) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
