/* Face-band CSS preview: sharp window over tiled WM, rest blurred. Draggable. */
.rs-faceband {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: 100%;
    line-height: 0;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}
.rs-faceband-blur,
.rs-faceband-sharp {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: inherit;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none !important;
}
.rs-faceband-blur {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: blur(16px);
    transform: scale(1.05);
    transform-origin: center center;
    z-index: 1 !important;
}
.rs-faceband-sharp,
.fp-image-wrapper .rs-faceband-sharp.fp-image,
.fp-image-wrapper #mainPhotoView.rs-faceband-sharp {
    position: relative;
    z-index: 2 !important;
}
.rs-faceband-edge {
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    margin-top: -14px;
    z-index: 30;
    cursor: ns-resize;
    touch-action: none;
    pointer-events: auto;
    background: transparent;
}
.rs-faceband-edge::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(234, 255, 0, 0.95), transparent);
    box-shadow: 0 0 10px rgba(234, 255, 0, 0.45);
    pointer-events: none;
}
.rs-faceband-handle {
    position: absolute;
    left: 0;
    right: 0;
    height: 44px;
    margin-top: -22px;
    z-index: 31;
    cursor: ns-resize;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: auto;
}
.rs-faceband-handle-grip {
    width: 56px;
    height: 7px;
    border-radius: 999px;
    background: rgba(234, 255, 0, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.45), 0 0 12px rgba(234, 255, 0, 0.55);
}
.rs-faceband-handle-hint {
    font-family: "Exo 2", system-ui, sans-serif;
    font-size: 10px;
    letter-spacing: 0.6px;
    color: #eaff00;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 8px;
    padding: 4px 8px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
}
.rs-faceband.is-dragging .rs-faceband-handle-hint {
    background: rgba(218, 37, 53, 0.9);
    color: #fff;
}
.rs-faceband.is-dragging .rs-faceband-handle-grip,
.rs-faceband.is-dragging .rs-faceband-edge::after {
    background: #fff;
}

/* Lightbox: keep wrap sizing */
.swal-media-wrap .rs-faceband,
.rs-lightbox-photo-inner .rs-faceband {
    max-height: 70vh;
}
.swal-media-wrap .rs-faceband-sharp,
.swal-media-wrap .rs-faceband-blur,
.rs-lightbox-photo-inner .rs-faceband-sharp,
.rs-lightbox-photo-inner .rs-faceband-blur {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
}

/* Framephoto: fill wrapper width; keep band above nav chrome */
.fp-image-wrapper .rs-faceband {
    width: 100%;
    z-index: 20;
}
.fp-image-wrapper .rs-faceband-sharp.fp-image,
.fp-image-wrapper .rs-faceband-blur {
    width: 100%;
    height: auto;
}
