.wp-block-columns.elctc-carousel.elctc-carousel {
	position: relative;
	display: flex;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	--elctc-n: var(--elctc-desktop, 3);
}

/* Match core's default padding on Columns with a background, so snapping keeps that inset. */
.wp-block-columns.elctc-carousel.elctc-carousel.has-background {
	scroll-padding-inline: 2.375em;
}

.elctc-wrap.elctc-has-controls > .wp-block-columns.elctc-carousel.elctc-carousel {
	scrollbar-width: none;
}

.elctc-wrap.elctc-has-controls > .wp-block-columns.elctc-carousel.elctc-carousel::-webkit-scrollbar {
	display: none;
}

.wp-block-columns.elctc-carousel.elctc-carousel > .wp-block-column {
	flex: 0 0 calc( ( 100% - ( var(--elctc-n) - 1 ) * var(--elctc-gap, 2em) ) / var(--elctc-n) ) !important;
	min-width: 0;
	scroll-snap-align: start;
}

@media ( max-width: 781px ) {
	.wp-block-columns.elctc-carousel.elctc-carousel {
		--elctc-n: var(--elctc-tablet, 2);
	}
}

@media ( max-width: 600px ) {
	.wp-block-columns.elctc-carousel.elctc-carousel {
		--elctc-n: var(--elctc-mobile, 1);
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wp-block-columns.elctc-carousel.elctc-carousel {
		scroll-behavior: auto;
	}
}

.elctc-wrap {
	position: relative;
	margin-bottom: 1.75em;
}

.elctc-wrap > .wp-block-columns.elctc-carousel.elctc-carousel {
	margin-bottom: 0;
}

.elctc-wrap .elctc-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	min-width: 0;
	height: 40px;
	min-height: 0;
	margin: -20px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	background: #1e1e1e;
	color: #fff;
	font-size: 22px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
}

.elctc-wrap.elctc-has-dots .elctc-arrow {
	top: calc(50% - 11px);
}

.elctc-wrap .elctc-arrow:hover,
.elctc-wrap .elctc-arrow:focus {
	background: #000;
	color: #fff;
}

.elctc-wrap .elctc-arrow:focus-visible,
.elctc-wrap .elctc-dot:focus-visible {
	outline: 2px solid #1e1e1e;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
}

.elctc-wrap .elctc-arrow[aria-disabled="true"] {
	opacity: 0.35;
	cursor: default;
}

.elctc-wrap .elctc-prev {
	left: 8px;
}

.elctc-wrap .elctc-next {
	right: 8px;
}

.elctc-wrap.elctc-rtl .elctc-prev {
	right: 8px;
	left: auto;
}

.elctc-wrap.elctc-rtl .elctc-next {
	right: auto;
	left: 8px;
}

.elctc-wrap .elctc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.elctc-wrap .elctc-dot {
	width: 10px;
	min-width: 0;
	height: 10px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	background: #c3c4c7;
	color: #1e1e1e;
	cursor: pointer;
}

.elctc-wrap .elctc-dot:hover,
.elctc-wrap .elctc-dot:focus {
	background: #8c8f94;
	color: #1e1e1e;
}

.elctc-wrap .elctc-dot[aria-current="true"] {
	background: #1e1e1e;
	color: #fff;
}

/* Theme button rules (display: inline-block etc.) would otherwise override [hidden]. */
.elctc-wrap .elctc-arrow[hidden],
.elctc-wrap .elctc-dots[hidden] {
	display: none;
}
