.block--carousel > .acf-innerblocks-container {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.block--carousel > .acf-innerblocks-container > * {
	flex: 0 0 calc(50% - 24px);
	scroll-snap-align: start;
	margin-right: 24px;
}

/* Editor-only (safe selectors) */
.block-editor .block--carousel .block-list-appender,
.block-editor .block--carousel .block-editor-button-block-appender {
	display: block;
	position: static;
	flex: 0 0 var(--vp-slide-basis);
	min-width: var(--vp-slide-basis);
	margin-right: 24px;
	scroll-snap-align: start;
	order: 9999; /* always last */
}

/* Share the same sizing logic as your slides */
.block-editor .block--carousel[data-slides-per-view='1'] {
	--vp-slide-basis: 100%;
}
.block-editor .block--carousel[data-slides-per-view='2'] {
	--vp-slide-basis: calc(50% - 24px);
}
.block-editor .block--carousel[data-slides-per-view='3'] {
	--vp-slide-basis: calc(33% - 24px);
}
.block-editor .block--carousel[data-slides-per-view='4'] {
	--vp-slide-basis: calc(25% - 24px);
}
.block-editor .block--carousel[data-slides-per-view='5'] {
	--vp-slide-basis: calc(20% - 24px);
}

.block--carousel[data-slides-per-view='1'] > .acf-innerblocks-container > * {
	flex: 0 0 calc(100%);
}

.block--carousel[data-slides-per-view='2'] > .acf-innerblocks-container > * {
	flex: 0 0 calc(50% - 24px);
}

.block--carousel[data-slides-per-view='3'] > .acf-innerblocks-container > * {
	flex: 0 0 calc(33% - 24px);
}

.block--carousel[data-slides-per-view='4'] > .acf-innerblocks-container > * {
	flex: 0 0 calc(25% - 24px);
}

.block--carousel[data-slides-per-view='5'] > .acf-innerblocks-container > * {
	flex: 0 0 calc(20% - 24px);
}

.admin--block-bar {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 6px 9px;
	background-color: #003f48;
	color: #f3f2ed;
	font-size: 11px;
	border-radius: 5px 5px 0 0;
	isolation: isolate;
	margin-bottom: 24px;
}

.admin--block-bar::after {
	content: '';
	position: absolute;
	top: calc(100% + 6px);
	display: block;
	width: 100%;
	height: 1px;
	background: linear-gradient(
		to right,
		#003f48 0%,
		#003f48 50%,
		/* Red dash */ transparent 50%,
		transparent 100%
	); /* Transparent gap */
	background-size: 20px 1px; /* Adjust dash length (width) and line thickness (height) */
	margin-top: 6px;
	margin-bottom: 6px;
}

.block--carousel {
	--swiper-pagination-color: #222;
	--swiper-pagination-bullet-width: 6px;
	--swiper-pagination-bullet-height: 6px;
	--swiper-pagination-bullet-horizontal-gap: 3px;
}

.block--carousel .swiper {
	overflow: visible;
}

.block--carousel[data-slides-show-overflow='false'] .swiper {
	overflow: hidden;
}

@media (max-width: 767px) {
	.block--carousel[data-slides-show-overflow='false'] .swiper {
		overflow: visible;
	}
}

.block--carousel--navigation {
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
}

@media screen and (max-width: 640px) {
	.block--carousel--navigation {
		padding-top: 12px;
	}
}

.block--carousel--navigation .swiper-pagination {
	position: static;
	text-align: left;
}

.block--carousel--buttons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.block--carousel--buttons > * {
	cursor: pointer;
	appearance: none;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 16px;
	width: 16px;
	color: #222;
}

.block--carousel--buttons > *[disabled] {
	color: gray;
}

.block--carousel--buttons > * svg {
	color: currentColor;
}

.block--carousel--buttons .swiper-button-lock {
	display: none;
}

.block--carousel .swiper-pagination {
	display: block;
}

.block--carousel[data-slides-show-carousel-bullet='false'] .swiper-pagination {
	display: none;
}

@media (max-width: 767px) {
	.block--carousel[data-slides-show-carousel-bullet-mobile='false']
		.swiper-pagination {
		display: none;
	}

	.block--carousel[data-slides-show-carousel-bullet='false'][data-slides-show-carousel-bullet-mobile='true']
		.swiper-pagination {
		display: block;
	}
}

.block--carousel .block--carousel--buttons {
	display: flex;
	gap: 8px;
	align-items: center;
}

.block--carousel[data-slides-show-prev-next-arrows='false']
	.block--carousel--buttons {
	display: none;
}

@media (max-width: 767px) {
	.block--carousel[data-slides-show-prev-next-arrows-mobile='false']
		.block--carousel--buttons {
		display: none;
	}

	.block--carousel[data-slides-show-prev-next-arrows='false'][data-slides-show-prev-next-arrows-mobile='true']
		.block--carousel--buttons {
		display: flex;
	}
}
