.ba-carousel-widget-37050 {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.ba-section-header {
	text-align: center;
	margin-bottom: 10px;
}

.ba-section-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #1a1a1a;
}

.ba-section-subtitle {
	font-size: 1rem;
	color: #666;
	margin: 0;
}

.ba-carousel-main-area {
	display: flex;
	align-items: center;
	gap: 20px;
	position: relative;
	width: 100%;
}

.ba-nav-arrow {
	background: #fff;
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	color: #333;
	flex-shrink: 0;
	transition: all 0.3s ease;
	z-index: 10;
	position: absolute; /* Position absolutely to hover over the container */
	top: 50%;
	transform: translateY(-50%);
}

.ba-nav-arrow.ba-prev {
	left: 20px; /* Default inside container */
}

.ba-nav-arrow.ba-next {
	right: 20px; /* Default inside container */
}


.ba-nav-arrow:hover {
	transform: translateY(-50%) scale(1.05); /* maintain vertical centering on hover */
	box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.ba-nav-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


.ba-carousel-main-container {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	user-select: none;
	background: #000;
	/* Removed max-width to allow full width */
}

.ba-carousel-main-container.aspect-16-9 { aspect-ratio: 16/9; }
.ba-carousel-main-container.aspect-4-3 { aspect-ratio: 4/3; }
.ba-carousel-main-container.aspect-1-1 { aspect-ratio: 1/1; }
.ba-carousel-main-container.aspect-3-2 { aspect-ratio: 3/2; }
.ba-carousel-main-container.aspect-21-9 { aspect-ratio: 21/9; }

.ba-slides-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.ba-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ba-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

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

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

.ba-image-before {
	z-index: 2;
	/* clip-path set inline */
}

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

.ba-label {
	position: absolute;
	top: 20px;
	padding: 8px 16px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
	backdrop-filter: blur(4px);
}

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

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

.ba-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 4px;
	background-color: #fff;
	z-index: 10;
	transform: translateX(-50%);
	cursor: ew-resize;
	/* left position set inline */
}

.ba-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	color: #333;
	pointer-events: none;
}
.ba-handle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


.ba-title-card-wrapper {
	position: absolute;
	bottom: 20px;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	z-index: 15; /* HIGHER THAN HANDLE (10) AND DIVIDER (10) */
	pointer-events: none;
}

.ba-title-card {
	background: rgba(255,255,255,0.9);
	padding: 12px 24px;
	border-radius: 12px;
	text-align: center;
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	max-width: 80%;
	pointer-events: auto;
}

.ba-card-title {
	margin: 0 0 4px 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
}

.ba-card-desc {
	margin: 0;
	font-size: 0.9rem;
	color: #555;
	display: block; /* Ensure it is block level */
}

.ba-counter-badge {
	position: absolute;
	bottom: 20px;
	right: 20px;
	background: rgba(0,0,0,0.6);
	color: #fff;
	padding: 6px 12px;
	border-radius: 16px;
	font-size: 0.85rem;
	font-weight: 600;
	z-index: 5;
	backdrop-filter: blur(4px);
}

.ba-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.ba-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.ba-dot.active {
	background: #007bff;
	width: 12px;
	height: 12px;
}

.ba-thumbnails-wrapper {
	width: 100%;
	overflow: hidden;
	margin-top: 10px;
}

.ba-thumbnails-scroll {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding-bottom: 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
}

.ba-thumbnails-scroll::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.ba-thumbnail {
	flex: 0 0 auto;
	width: 160px; /* Fallback width, overridden by controls if set */
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ba-thumbnail.active {
	border-color: #007bff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.ba-thumb-img-wrap {
	width: 100%;
	height: 90px;
	position: relative;
	overflow: hidden;
}

.ba-thumb-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ba-thumb-after {
	position: absolute;
	top: 0;
	left: 0;
}

.ba-thumb-before {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.ba-thumb-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: #fff;
	z-index: 2;
	transform: translateX(-50%);
}

.ba-thumb-label {
	padding: 10px;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: #333;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
	.ba-carousel-main-area {
		flex-direction: column;
		gap: 15px;
	}
	
	.ba-nav-arrow {
		/* Show arrows on mobile, adjust size */
		display: flex;
		width: 36px;
		height: 36px;
	}

	.ba-nav-arrow svg {
		width: 16px;
		height: 16px;
	}

	.ba-nav-arrow.ba-prev {
		left: 10px;
	}

	.ba-nav-arrow.ba-next {
		right: 10px;
	}
	
	.ba-thumbnail {
		/* Let the control handle width if set, otherwise fallback */
	}
	
	.ba-title-card {
		padding: 8px 16px;
		max-width: 90%;
	}
	
	.ba-card-title {
		font-size: 1rem;
	}
	
	.ba-card-desc {
		font-size: 0.8rem;
		display: block; /* Ensure visible on mobile */
	}
}
