.ba-slider-container {
	position: relative;
	overflow: hidden;
	width: 100%;
	line-height: 0;
	user-select: none;
}

.ba-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.ba-image-after {
	position: relative;
	z-index: 1;
}

.ba-image-before-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%; /* Initial width */
	height: 100%;
	overflow: hidden;
	z-index: 2;
}

.ba-image-before {
	width: 200%; /* Important: Counteracts the wrapper width to maintain aspect ratio */
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: left;
}

.ba-slider-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 4;
	cursor: pointer;
	margin: 0;
}

.ba-slider-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background-color: #fff;
	z-index: 3;
	transform: translateX(-50%);
	pointer-events: none;
}

.ba-slider-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.ba-slider-handle svg {
	fill: #333;
	width: 24px;
	height: 24px;
}

.ba-slider-label {
	position: absolute;
	top: 20px;
	background-color: rgba(0,0,0,0.6);
	color: #fff;
	padding: 5px 10px;
	border-radius: 4px;
	font-family: sans-serif;
	font-size: 14px;
	z-index: 3;
	pointer-events: none;
}

.ba-label-before {
	left: 20px;
}

.ba-label-after {
	right: 20px;
}
