/* [cd_article_cards] shortcode styles */

.cd-ac-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 22px;
}

.cd-ac-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	/* 297px image + 375px body + the 1px border top and bottom. */
	height: 674px;
	border: 1px solid #E0E0E0;
	border-radius: 18px;
	/* Clips the image to the card's top corners. */
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.cd-ac-card:hover,
.cd-ac-card:focus {
	text-decoration: none;
	color: inherit;
}

/* Featured images vary in size, and themes commonly force img height to auto,
   so the 297px box is locked down here. */
.cd-ac-image {
	display: block;
	flex: 0 0 297px;
	width: 100% !important;
	max-width: 100% !important;
	height: 297px !important;
	min-height: 297px !important;
	max-height: 297px !important;
	object-fit: cover !important;
	object-position: center center !important;
	/* One less than the card radius, to sit inside the 1px border. */
	border-top-left-radius: 17px;
	border-top-right-radius: 17px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border: 0;
	margin: 0;
	padding: 0;
}

.cd-ac-image-placeholder {
	background: #EFE7E1;
}

.cd-ac-body {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	flex: 1 1 auto;
	min-height: 0;
	background: #FDF7F3;
	padding: 25px 36px 33px 19px;
}

.cd-ac-category {
	display: block;
	font-family: 'Outfit', sans-serif !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	line-height: 100% !important;
	letter-spacing: 0.29em;
	text-transform: uppercase;
	color: #4B2FC5;
}

.cd-ac-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 15px;
	font-family: 'Playfair Display', serif !important;
	font-weight: 400 !important;
	font-size: 28px !important;
	line-height: 100% !important;
	letter-spacing: 0;
	color: #0B0B0B;
}

.cd-ac-rule {
	display: block;
	flex: 0 0 1px;
	width: 36px;
	height: 1px;
	margin-top: 21px;
	background: #F6599C;
}

.cd-ac-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 34px;
	font-family: 'Outfit', sans-serif !important;
	font-weight: 400 !important;
	font-size: 17px !important;
	line-height: 26px !important;
	letter-spacing: 0;
	color: #1E1E1EB2;
}

/* margin-top:auto floats this to the padding edge — 33px from the bottom. */
.cd-ac-more {
	display: block;
	box-sizing: border-box;
	width: 159px;
	margin-top: auto;
	padding-bottom: 12px;
	border-bottom: 1px solid #4B2FC5;
	border-radius: 0;
}

.cd-ac-more-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cd-ac-more-text {
	font-family: 'Outfit', sans-serif !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	line-height: 100% !important;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #4B2FC5;
}

.cd-ac-more-arrow {
	display: block;
	flex: 0 0 19px;
	width: 19px !important;
	height: 11px !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.cd-ac-empty {
	font-family: 'Outfit', sans-serif;
	font-size: 15px;
	color: #666;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 1280px) {
	.cd-ac-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

@media (max-width: 600px) {
	.cd-ac-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
