.basw-container {
	position: relative;
	width: 100%;
	max-width: 100%;
}
.basw-media {
	position: relative;
	width: 100%;
	padding-top: 80%; /* default 4:5 ratio; overridden by control (ratio mode sets padding-top, height mode sets height instead) */
}
.basw-media-inner {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.basw-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
	display: block;
}
/* Click / Button interaction mode — hide the drag divider & handle */
.basw-container[data-interaction="click"] .basw-divider,
.basw-container[data-interaction="click"] .basw-handle {
	display: none;
}
.basw-container[data-interaction="click"] .basw-label-group {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 8px;
}
.basw-container[data-interaction="click"] .basw-label-group .basw-label {
	position: static;
	top: auto;
	left: auto;
	bottom: auto;
}
.basw-container[data-interaction="click"] .basw-label {
	pointer-events: auto;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
}
.basw-container[data-interaction="click"] .basw-label:not(.is-active) {
	opacity: 0.6;
}
.basw-container[data-interaction="click"] .basw-label.is-active {
	opacity: 1;
	transform: scale(1.03);
}
.basw-img-before {
	z-index: 1;
}
.basw-after-wrap {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	/* clip-path is set dynamically by JS based on orientation + position */
}
.basw-img-after {
	position: absolute;
	inset: 0;
}
.basw-label {
	position: absolute;
	z-index: 4;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	pointer-events: none;
	white-space: nowrap;
}
.basw-label-before {
	top: 16px;
	left: 16px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
}
.basw-label-after {
	position: absolute;
	bottom: 16px;
	left: 16px;
	background-color: #f0e6d6;
	color: #333;
	z-index: 3;
}
.basw-divider {
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	background-color: #fff;
	transform: translateX(-50%);
	z-index: 5;
	cursor: ew-resize;
	touch-action: none;
}
.basw-container[data-orientation-active="vertical"] .basw-divider {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	transform: translateY(-50%);
	cursor: ns-resize;
}
.basw-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	cursor: inherit;
}
.basw-handle svg {
	stroke: #333;
}
.basw-container:not([data-orientation-active="vertical"]) .basw-handle svg {
	transform: rotate(90deg);
}
.basw-overlay-gradient {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 45%;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
}
.basw-text-overlay {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 18px;
	z-index: 4;
	pointer-events: none;
}
.basw-title {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px 0;
	line-height: 1.3;
}
.basw-description {
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	margin: 0;
	line-height: 1.4;
}