.bae-container {
	position: relative;
	width: 100%;
	height: 450px;
	overflow: hidden;
	user-select: none;
	touch-action: none;
	direction: ltr; /* internal geometry always ltr for consistent math */
}

.bae-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.bae-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.bae-image-after {
	clip-path: inset(0 0 0 50%);
}

.bae-orientation-vertical .bae-image-after {
	clip-path: inset(50% 0 0 0);
}

.bae-divider {
	position: absolute;
	background-color: #fff;
	pointer-events: none;
	z-index: 2;
}

.bae-orientation-horizontal .bae-divider {
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-inline-start: -1px;
}

.bae-orientation-vertical .bae-divider {
	left: 0;
	right: 0;
	top: 50%;
	height: 2px;
	margin-top: -1px;
}

.bae-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	margin-inline-start: -22px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	cursor: ew-resize;
	z-index: 3;
}

.bae-orientation-vertical .bae-handle {
	cursor: ns-resize;
}

.bae-orientation-vertical .bae-handle svg {
	transform: rotate(90deg);
}

.bae-handle svg {
	stroke: #333;
}

.bae-label {
	position: absolute;
	bottom: 14px;
	padding: 4px 12px;
	font-size: 13px;
	border-radius: 4px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	z-index: 1;
	pointer-events: none;
}

.bae-label-before { left: 14px; }
.bae-label-after { right: 14px; }
