.cbnw-carousel {
	position: relative;
	width: 100%;
	height: 100%;
	--cbnw-speed: 500ms;
	--cbnw-object-fit: cover;
}

.cbnw-carousel.cbnw-height-custom {
	height: var(--cbnw-height, 500px);
}

.cbnw-frame {
	position: relative;
	width: 100%;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	border-style: none;
	touch-action: pan-y;
}

.cbnw-frame:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.cbnw-track {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	transition-property: transform;
	transition-timing-function: ease;
	will-change: transform;
}

.cbnw-slide {
	position: relative;
	box-sizing: border-box;
	height: 100%;
	min-width: 0;
	overflow: hidden;
}

.cbnw-slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: var(--cbnw-object-fit, cover);
}

.cbnw-effect-stack .cbnw-track {
	display: grid;
	transform: none !important;
}

.cbnw-effect-stack .cbnw-slide {
	grid-area: 1 / 1;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--cbnw-speed) ease, transform var(--cbnw-speed) ease, visibility 0s linear var(--cbnw-speed);
}

.cbnw-effect-stack .cbnw-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.cbnw-effect-zoom.cbnw-effect-stack .cbnw-slide {
	transform: scale(.94);
}

.cbnw-effect-zoom.cbnw-effect-stack .cbnw-slide.is-active {
	transform: scale(1);
}

.cbnw-effect-flip.cbnw-effect-stack .cbnw-frame {
	perspective: 1000px;
}

.cbnw-effect-flip.cbnw-effect-stack .cbnw-slide {
	transform: rotateY(90deg);
	backface-visibility: hidden;
}

.cbnw-effect-flip.cbnw-effect-stack .cbnw-slide.is-active {
	transform: rotateY(0);
}

.cbnw-arrows {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 0;
	display: flex;
	width: 100%;
	justify-content: space-between;
	padding: 0 12px;
	transform: translateY(-50%);
	box-sizing: border-box;
	pointer-events: none;
}

.cbnw-arrow {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	pointer-events: auto;
	transition: opacity .2s ease, background-color .2s ease;
}

.cbnw-arrow:hover {
	background: rgba(0, 0, 0, .78);
}

.cbnw-arrow:focus-visible,
.cbnw-dot:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.cbnw-arrow:disabled {
	opacity: .35;
	cursor: default;
}

.cbnw-dots {
	display: flex;
	min-height: 22px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.cbnw-dots[hidden] {
	display: none;
}

.cbnw-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #999;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}

.cbnw-dot.is-active {
	background: #222;
	transform: scale(1.25);
}

.cbnw-is-static .cbnw-arrows,
.cbnw-is-static .cbnw-dots {
	display: none;
}

.cbnw-empty {
	padding: 16px;
	border: 1px dashed #aaa;
	color: #555;
}

@media (prefers-reduced-motion: reduce) {
	.cbnw-track,
	.cbnw-effect-stack .cbnw-slide,
	.cbnw-arrow,
	.cbnw-dot {
		transition-duration: 0.01ms !important;
	}
}
