.slider {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: var(--wp--style--block-gap, 5vw);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-inline: 0;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.slider::-webkit-scrollbar {
	display: none;
}

.wp-block-post-content .slider {
	padding-inline: 0 !important;
}

.slider > .slide {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	padding-inline: clamp(12px, 4vw, 48px);
}

.block-editor-block-list__layout .slider {
	display: block;
	overflow: visible;
	padding-inline: 0 !important;
}

.block-editor-block-list__layout .slider > .slide {
	margin-top: clamp(16px, 3vw, 32px);
	border: 2px dashed rgba(0, 0, 0, 0.2);
	padding: clamp(12px, 2vw, 20px);
}

.block-editor-block-list__layout .slider > .slide:first-child {
	margin-top: 0;
}

.block-editor-block-list__layout .slider + .slider-bullets {
	margin-top: clamp(12px, 2vw, 20px);
}

.slider-bullets {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: clamp(12px, 2vw, 20px);
}

.slider-bullets.buttons-for-slider {
	display: block;
}

.slider-bullets.buttons-for-slider .wp-block-buttons {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
}

.slider-bullets.buttons-for-slider .wp-block-button {
	margin: 0;
}

.slider-bullets.buttons-for-slider .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 100px;
	border-style: solid;
	border-color: var(--wp--preset--color--primary-dark, #3b3e39);
	color: var(--wp--preset--color--primary-dark, #3b3e39);
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.slider-bullets.buttons-for-slider .wp-block-button__link img {
	display: block;
	height: auto;
	filter: invert(33%) sepia(14%) saturate(188%) hue-rotate(53deg) brightness(63%) contrast(90%);
}

.slider-bullets.buttons-for-slider .wp-block-button__link:hover,
.slider-bullets.buttons-for-slider .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--primary-dark, #3b3e39) !important;
	color: var(--wp--preset--color--white, #fff) !important;
	border-color: var(--wp--preset--color--primary-dark, #3b3e39) !important;
}

.slider-bullets.buttons-for-slider .wp-block-button__link:hover img,
.slider-bullets.buttons-for-slider .wp-block-button__link:focus-visible img {
	filter: invert(91%) sepia(95%) saturate(67%) hue-rotate(145deg) brightness(190%) contrast(147%);
}

.slider-bullets.buttons-for-slider .wp-block-button__link:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.slider-bullets.buttons-for-slider .wp-block-button__link:disabled:hover,
.slider-bullets.buttons-for-slider .wp-block-button__link:disabled:focus-visible {
	background-color: #ffffff00 !important;
	color: var(--wp--preset--color--primary-dark, #3b3e39) !important;
	border-color: var(--wp--preset--color--primary-dark, #3b3e39) !important;
}

.slider-bullets.buttons-for-slider .wp-block-button__link:disabled:hover img,
.slider-bullets.buttons-for-slider .wp-block-button__link:disabled:focus-visible img {
	filter: invert(33%) sepia(14%) saturate(188%) hue-rotate(53deg) brightness(63%) contrast(90%);
}

.wp-block-post-content section.wp-block-group.slider.has-section-bullets {
	padding-bottom: 56px;
}

.wp-block-post-content section.wp-block-group.slider > .slider-bullets.is-section-bullets {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	margin-top: 0;
	z-index: 3;
	transform: translateX(var(--slider-scroll-left, 0px));
	will-change: transform;
}

.block-editor-block-list__layout section.wp-block-group.slider > .slider-bullets.is-section-bullets {
	position: static;
	margin-top: clamp(12px, 2vw, 20px);
}

.slider-bullets:not(.buttons-for-slider) button {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 0;
	background: var(--slider-bullet-inactive, rgba(0, 0, 0, 0.2));
	padding: 0;
	cursor: pointer;
}

.slider-bullets:not(.buttons-for-slider) button.is-active {
	background: var(--slider-bullet-active, currentColor);
}

.slider-bullets:not(.buttons-for-slider) button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.slider-swipe-hint {
	display: none;
}

@media screen and (max-width: 1023px) {
	.swiper + .slider-swipe-hint {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		max-width: 200px;
		margin-top: 10px;
		margin-left: auto;
		margin-right: auto;
		padding: 6px 12px;
		border-radius: 999px;
		background: rgba(0, 0, 0, 0.06);
		color: inherit;
		font-size: 0.875rem;
		line-height: 1.2;
		opacity: 0.85;
	}
}
