.vecto-ba {
	position: relative;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	isolation: isolate;
	background: #f5f5f5;
	user-select: none;
	touch-action: none;
	--vecto-ba-position: 50%;
}

.vecto-ba,
.vecto-ba * {
	box-sizing: border-box;
}

.vecto-ba__image-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.vecto-ba__before { z-index: 1; }

.vecto-ba__after {
	z-index: 2;
	clip-path: inset(0 0 0 var(--vecto-ba-position));
}

.vecto-ba__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
	user-select: none;
}

.vecto-ba__divider {
	position: absolute;
	top: 0;
	left: var(--vecto-ba-position);
	z-index: 5;
	width: 0;
	height: 100%;
	transform: translateX(-50%);
	pointer-events: none;
}

.vecto-ba__bar {
	position: absolute;
	top: 0;
	left: 50%;
	display: block;
	width: 4px;
	height: 100%;
	background: #fff;
	transform: translateX(-50%);
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

.vecto-ba__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 72px;
	height: 72px;
	border: 4px solid #fff;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transform: translate(-50%, -50%);
	backdrop-filter: blur(2px);
}

.vecto-ba__arrow {
	display: block;
	width: 0;
	height: 0;
}

.vecto-ba__arrow-left {
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-right: 12px solid #fff;
}

.vecto-ba__arrow-right {
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-left: 12px solid #fff;
}

.vecto-ba__range {
	position: absolute;
	inset: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: ew-resize;
	appearance: none;
	-webkit-appearance: none;
}

.vecto-ba__range::-webkit-slider-thumb {
	width: 48px;
	height: 48px;
	cursor: ew-resize;
	appearance: none;
	-webkit-appearance: none;
}

.vecto-ba__range::-moz-range-thumb {
	width: 48px;
	height: 48px;
	border: 0;
	cursor: ew-resize;
}

.vecto-ba__label {
	position: absolute;
	z-index: 6;
	top: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

.vecto-ba__label-before { left: 20px; }
.vecto-ba__label-after { right: 20px; }

.vecto-ba-credit {
	margin-top: 8px;
	font-size: 11px;
	line-height: 1.2;
	color: #888;
	text-align: right;
}

@media (max-width: 767px) {
	.vecto-ba { height: 360px; }
	.vecto-ba__handle { width: 56px; height: 56px; gap: 6px; }
	.vecto-ba__arrow-left { border-top-width: 9px; border-bottom-width: 9px; border-right-width: 9px; }
	.vecto-ba__arrow-right { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 9px; }
}
