.beaf-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
}

.beaf-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.5;
}

.beaf-container img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.beaf-before {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 1;
}

.beaf-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.2s ease;
}

.beaf-handle {
    position: absolute;
    top: 0; bottom: 0;
    width: 3px;
    background: #fff;
    left: 50%;
    z-index: 3;
    cursor: ew-resize;
    transition: left 0.2s ease;
}
.beaf-handle {
    position: absolute;
    top: 0; bottom: 0;
    width: 3px;
    background: #fff;
    left: 50%;
    z-index: 3;
    cursor: ew-resize;
    transition: left 0.2s ease;
}

.beaf-handle::before {
	padding: 11px 5px;
    font-size: 18px;
    border: 1px solid #fff;
    background: #e6e6e600;
    content: '◀▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    border-radius: 50%;
    line-height: 1;
    white-space: nowrap;
}
