.c3-content-grid {
	grid-template-columns: repeat(var(--c3-columns-desktop, 3), minmax(0, 1fr));
	gap: var(--c3-grid-gap, 24px);
}

.c3-card--fallback {
	min-width: 0;
}

.c3-card--fallback .c3-card__media,
.c3-card--fallback .c3-card__media img {
	display: block;
	width: 100%;
}

.c3-content-empty {
	padding: 1rem;
	border: 1px dashed currentColor;
	opacity: 0.7;
}

/* Server-side editor preview before the slider script is mounted. */
.c3-content-editor-preview .c3-content-slider {
	visibility: visible;
}

.c3-content-editor-preview .c3-content-slider .swiper-wrapper {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	transform: none !important;
}

.c3-content-editor-preview .c3-content-slider--type-post .swiper-wrapper,
.c3-content-editor-preview .c3-content-slider--type-case_study .swiper-wrapper,
.c3-content-editor-preview .c3-content-slider--type-testimonial .swiper-wrapper {
	display: block;
}

.c3-content-editor-preview .c3-content-slider .swiper-slide {
	width: auto;
}

.c3-content-editor-preview .c3-content-slider .swiper-slide:nth-child(n + 4),
.c3-content-editor-preview .c3-content-slider--type-post .swiper-slide:nth-child(n + 2),
.c3-content-editor-preview .c3-content-slider--type-case_study .swiper-slide:nth-child(n + 2),
.c3-content-editor-preview .c3-content-slider--type-testimonial .swiper-slide:nth-child(n + 2) {
	display: none;
}

@media (max-width: 1024px) {
	.c3-content-grid {
		grid-template-columns: repeat(var(--c3-columns-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.c3-content-grid {
		grid-template-columns: repeat(var(--c3-columns-mobile, 1), minmax(0, 1fr));
	}
}
