/**
 * External dependencies
 */
/* @define teft-viewport */
/**
 * External dependencies
 */
/**
 * Internal dependencies
 */
/* @define teft-cards */
:root {
	--teft-cards-gap: var(--teft-theme-gap, 1.5rem);
}
.teft-cards-grid {
	display: grid;
	grid-auto-flow: dense;
	grid-gap: var(--teft-cards-gap);
	grid-template-columns: repeat(auto-fill, minmax(calc(calc(100% / 12) - var(--teft-cards-gap)), 1fr));
	justify-items: stretch;
}
.teft-cards-grid > .teft-cards-item {
	grid-column: span 12;
}
.teft-card__media {
	width: 100%;
}
@media (min-width: 783px) {
	.teft-cards-grid > .teft-cards-item {
		grid-column: span 4;
	}

	.default-size-3 > .teft-cards-item,
	.teft-cards-grid > .teft-cards-item.has-3-columns {
		grid-column: span 3;
	}

	.default-size-4 > .teft-cards-item,
	.teft-cards-grid > .teft-cards-item.has-4-columns {
		grid-column: span 4;
	}

	.default-size-6 > .teft-cards-item,
	.teft-cards-grid > .teft-cards-item.has-6-columns {
		grid-column: span 6;
	}

	.default-size-8 > .teft-cards-item,
	.teft-cards-grid > .teft-cards-item.has-8-columns {
		grid-column: span 8;
	}

	.default-size-9 > .teft-cards-item,
	.teft-cards-grid > .teft-cards-item.has-9-columns {
		grid-column: span 9;
	}

	.default-size-12 > .teft-cards-item,
	.teft-cards-grid > .teft-cards-item.has-12-columns {
		grid-column: span 12;
	}
		.teft-cards-item.is-style-two-columns .teft-card__primary-action {
			justify-content: flex-end;
			padding-left: 50%;
		}

		.teft-cards-item.is-style-two-columns .teft-card__media {
			bottom: 0;
			left: 0;
			position: absolute;
			right: 50%;
			top: 0;
			width: auto;
		}

		.teft-cards-item.is-style-two-columns.has-7-columns,
		.teft-cards-item.is-style-two-columns.has-8-columns {
			min-height: 360px;
		}

		.teft-cards-item.is-style-two-columns.has-9-columns,
		.teft-cards-item.is-style-two-columns.has-10-columns {
			min-height: 390px;
		}

		.teft-cards-item.is-style-two-columns.has-11-columns,
		.teft-cards-item.is-style-two-columns.has-12-columns {
			min-height: 415px;
		}

	.teft-cards-item.is-vertically-aligned-center .teft-card__primary-action {
		justify-content: center;
	}

	.teft-cards-item.is-aligned-center .teft-card__primary-action {
		align-items: center;
		text-align: center;
	}
}
.teft-cards-item::before,
.teft-cards-item::after {
	content: "";
	display: table;
}
.teft-cards-item::after {
	clear: both;
}
.teft-cards-item {
	height: 100%;
	position: relative;
}
.is-card-default {
	background-color: #fff;
	box-shadow: 0 0 0 1px #b5bcc2 inset;
	color: #000;
}
.is-card-default.has-background,
	.has-background .is-card-default {
		box-shadow: none;
	}
.is-card-default.has-very-dark-gray-background-color,
	.is-card-default.has-vivid-red-background-color,
	.is-card-default.has-vivid-cyan-blue-background-color,
	.is-card-default.has-luminous-vivid-orange-background-color {
		color: #fff;
	}
.teft-card {
	height: 100%;
}
.teft-card__primary-action::before,
.teft-card__primary-action::after {
	content: "";
	display: table;
}
.teft-card__primary-action::after {
	clear: both;
}
.teft-card__primary-action {
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}
/**
 * Media
 */
.teft-card__media {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
}
.teft-card__media::before {
	content: "";
	display: block;
}
.teft-card__media--16-9::before {
	margin-top: 56.25%;
}
/**
 * Primary
 */
.teft-card__primary {
	padding: 1rem 1rem 0.3rem;
}
.teft-card__primary .teft-card__title {
	font-size: 1.5em;
	margin: 0;
}
/**
 * Secondary
 */
.teft-card__secondary {
	padding: 0 1rem 1rem;
}
/**
 * Internal dependencies
 */
.wp-block-teft-cards-theme {
	background-color: #f0f0f0;
	padding: 20px var(--teft-theme-site-padding)
}
.wp-block-teft-cards-theme.is-style-dark {
		background-color: #333;
		color: #fff;
	}
.teft-cards-latest-no-found {
	padding: 20px;
	text-align: center;
}
