/* Independent columns: text at left, automatic image carousel at right. */
.cbgroup-hero {
	display: grid;
	grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	padding: 16px 0 0;
	background: #fff;
}
.cbgroup-hero__copy { width: 100%; max-width: 46ch; min-width: 0; }
.cbgroup-hero__image.cbgroup-hero-carousel {
	position: relative;
	align-self: center;
	width: 100%;
	min-width: 0;
	max-height: none;
}
.cbgroup-hero-carousel::before { display: none; }
.cbgroup-hero-carousel__track {
	position: relative;
	aspect-ratio: 2.15;
	overflow: hidden;
	border-radius: 6px;
	background: #e9eff4;
	touch-action: pan-y pinch-zoom;
}
/* Fade only the image edge; the layout and controls remain independent. */
.cbgroup-hero-carousel__track::after {
 content: '';
 position: absolute;
 inset: 0;
 z-index: 1;
 background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.9) 3%, rgba(255,255,255,.45) 9%, rgba(255,255,255,.1) 16%, transparent 23%);
 pointer-events: none;
}
.cbgroup-hero-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 650ms ease, visibility 650ms;
}
.cbgroup-hero-carousel__slide.is-active { opacity: 1; visibility: visible; }
.cbgroup-hero-carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The supplied banners place the products on the right, with empty space at left. */
	object-position: right center;
	user-select: none;
	-webkit-user-drag: none;
}
.cbgroup-hero-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	padding-top: 8px;
}
.cbgroup-hero-carousel__controls[hidden] { display: flex; visibility: hidden; }
.cbgroup-hero-carousel__controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: #16326b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.cbgroup-hero-carousel__controls button:hover { background: #edf1f7; }
.cbgroup-hero-carousel:focus-visible,
.cbgroup-hero-carousel__controls button:focus-visible { outline: 2px solid #16326b; outline-offset: 2px; }
.cbgroup-hero-carousel__dots { display: flex; }
.cbgroup-hero-carousel__dots button { width: 36px; }
.cbgroup-hero-carousel__dots span { width: 8px; height: 8px; border-radius: 50%; background: #a6b2c7; }
.cbgroup-hero-carousel__dots [aria-current="true"] span { background: #16326b; box-shadow: 0 0 0 3px #dce4f2; }
@media (max-width: 900px) {
	.cbgroup-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.cbgroup-hero-carousel__controls { justify-content: center; }
 .cbgroup-hero-carousel__track::after {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.55) 3%, rgba(255,255,255,.12) 7%, transparent 12%);
 }
}
@media (prefers-reduced-motion: reduce) {
	.cbgroup-hero-carousel__slide { transition: none; }
}
