/* MickWest/Compare - Image comparison slider */

.mw-compare-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    line-height: 0;
}

.mw-compare-container img {
    display: block;
    max-width: none;         /* override XF default so before-image can span full container */
    height: auto;
}

/* The "after" (second) image sits as the base and sizes the container */
.mw-compare-container > img,
.mw-compare-container > a > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Clipping wrapper for the "before" (first) image */
.mw-compare-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Vertical divider line */
.mw-compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #fff;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* Circular grab indicator */
.mw-compare-handle::after {
    content: '\25C0\2009\25B6';       /* ◀ ▶ */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    line-height: 44px;
    text-align: center;
}

/* Labels */
.mw-compare-label {
    position: absolute;
    top: 10px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.mw-compare-container:hover .mw-compare-label {
    opacity: 1;
}

.mw-compare-label-before {
    left: 10px;
}

.mw-compare-label-after {
    right: 10px;
}
