.osher-ba {
	--osher-ba-position: 50%;
	width: 100%;
}

.osher-ba__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8e8e8;
	isolation: isolate;
}

.osher-ba__stage:focus-within {
	outline: 3px solid #bca371;
	outline-offset: 4px;
}

.osher-ba__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	user-select: none;
	pointer-events: none;
}

.osher-ba__image--after {
	z-index: 1;
}

.osher-ba__image--before {
	z-index: 2;
	clip-path: inset(0 calc(100% - var(--osher-ba-position)) 0 0);
}

.osher-ba__label {
	position: absolute;
	top: 18px;
	z-index: 4;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.82);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	backdrop-filter: blur(5px);
}

.osher-ba__label--before {
	left: 18px;
}

.osher-ba__label--after {
	right: 18px;
}

.osher-ba__divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--osher-ba-position);
	z-index: 5;
	width: 3px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
	transform: translateX(-50%);
	pointer-events: none;
}

.osher-ba__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #141414;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
}

.osher-ba__handle svg {
	width: 36px;
	height: 36px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.osher-ba__control {
	position: absolute;
	inset: 0;
	z-index: 6;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: ew-resize;
	opacity: 0;
	touch-action: pan-y;
}

.osher-ba__caption {
	margin: 14px 0 0;
	color: #4f4f4f;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.osher-ba__sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 767px) {
	.osher-ba__label {
		top: 12px;
		padding: 7px 10px;
		font-size: 10px;
	}

	.osher-ba__label--before {
		left: 12px;
	}

	.osher-ba__label--after {
		right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.osher-ba *,
	.osher-ba *::before,
	.osher-ba *::after {
		transition: none !important;
	}
}

