
.cards-block {
	position: relative;
}

.cards-block>.wp-block-heading {
	margin-bottom: 2rem;
}

.cards-block--grid .wp-block-query .wp-block-post-template {
	display: grid;
	gap: var(--cards-gap, 24px);
	grid-template-columns: repeat(var(--cards-columns-mobile, 1), 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width:768px) {
	.cards-block--grid .wp-block-query .wp-block-post-template {
		grid-template-columns: repeat(var(--cards-columns-tablet, 2), 1fr);
	}
}

@media (min-width:1024px) {
	.cards-block--grid .wp-block-query .wp-block-post-template {
		grid-template-columns: repeat(var(--cards-columns-desktop, 3), 1fr);
	}
}

.cards-block--grid .wp-block-query .wp-block-post-template>li {
	list-style: none;
}

.cards-block--carousel .carousel-container {
	position: relative;
}

.cards-block--carousel .carousel-container .carousel__swiper {
	overflow: hidden;
}

.cards-block--carousel .carousel-container .carousel__swiper .swiper-wrapper {
	display: flex;
}

.cards-block--carousel .carousel-container .carousel__swiper .swiper-wrapper .swiper-slide {
	height: auto;
	list-style: none;
}

.cards-block--carousel .carousel-container .carousel__swiper .swiper-wrapper .swiper-slide>* {
	height: 100%;
}

.cards-block--carousel .carousel-container .carousel__navigation {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 32px;
}

@media (min-width:768px) {
	.cards-block--carousel .carousel-container .carousel__navigation {
		justify-content: flex-end;
	}
}

.cards-block--carousel .carousel-container .carousel-nav {
	align-items: center;
	background: transparent;
	border: 2px solid;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	height: 48px;
	justify-content: center;
	padding: 0;
	transition: all .2s ease;
	width: 48px;
}

.cards-block--carousel .carousel-container .carousel-nav svg {
	height: 24px;
	width: 24px;
}

.cards-block--carousel .carousel-container .carousel-nav svg path {
	stroke: currentColor;
	transition: stroke .2s ease;
}

.cards-block--carousel .carousel-container .carousel-nav.swiper-button-disabled {
	cursor: not-allowed;
	opacity: .3;
	pointer-events: none;
}

.editor-styles-wrapper .cards-block--grid .wp-block-query .wp-block-post-template {
	display: grid;
	gap: var(--cards-gap, 24px);
	grid-template-columns: repeat(var(--cards-columns-mobile, 1), 1fr);
}

@media (min-width:768px) {
	.editor-styles-wrapper .cards-block--grid .wp-block-query .wp-block-post-template {
		grid-template-columns: repeat(var(--cards-columns-tablet, 2), 1fr);
	}
}

@media (min-width:1024px) {
	.editor-styles-wrapper .cards-block--grid .wp-block-query .wp-block-post-template {
		grid-template-columns: repeat(var(--cards-columns-desktop, 3), 1fr);
	}
}

.editor-styles-wrapper .cards-block--carousel .wp-block-query {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.editor-styles-wrapper .cards-block--carousel .wp-block-query::-webkit-scrollbar {
	height: 8px;
}

.editor-styles-wrapper .cards-block--carousel .wp-block-query::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.editor-styles-wrapper .cards-block--carousel .wp-block-query::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.editor-styles-wrapper .cards-block--carousel .wp-block-query::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.editor-styles-wrapper .cards-block--carousel .wp-block-query .wp-block-post-template {
	display: flex;
	flex-direction: row;
	gap: var(--carousel-gap, 24px);
	padding-bottom: 16px;
	width: -moz-max-content;
	width: max-content;
}

.editor-styles-wrapper .cards-block--carousel .wp-block-query .wp-block-post-template>li {
	flex-shrink: 0;
	list-style: none;
	width: 360px;
}

@media (min-width:768px) {
	.editor-styles-wrapper .cards-block--carousel .wp-block-query .wp-block-post-template>li {
		width: 380px;
	}
}

@media (min-width:1024px) {
	.editor-styles-wrapper .cards-block--carousel .wp-block-query .wp-block-post-template>li {
		width: 400px;
	}
}

.editor-styles-wrapper .cards-block--carousel .carousel-container .carousel-preview-notice {
	background: #f0f6fc;
	border-left: 4px solid #0073aa;
	border-radius: 2px;
	color: #1e1e1e;
	font-size: 13px;
	margin-top: 16px;
	padding: 12px 16px;
	text-align: center;
}

.editor-styles-wrapper .cards-block--carousel .carousel-container .carousel__navigation {
	opacity: .6;
	pointer-events: none;
}

.section-inner>.cards-block .carousel__swiper {
	overflow: visible;
}
