/* [cd_group_cards] shortcode styles */

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

.cd-gc-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	/* 135px image + 106px body + the 1px border top and bottom. */
	height: 243px;
	border: 1px solid #C6C6C6;
	border-radius: 13px;
	/* Clips the image to the card's top corners. */
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

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

/* Source images vary wildly in size, and themes commonly force img height to
   auto, so the 135px box is locked down here. */
.cd-gc-image {
	display: block;
	flex: 0 0 135px;
	width: 100% !important;
	max-width: 100% !important;
	height: 135px !important;
	min-height: 135px !important;
	max-height: 135px !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: 12px;
	border-top-right-radius: 12px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border: 0;
	margin: 0;
	padding: 0;
}

.cd-gc-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ddd;
	font-family: 'Playfair Display', serif;
	font-size: 42px;
	font-weight: 400;
	color: #8a8a8a;
	text-transform: uppercase;
}

.cd-gc-body {
	display: block;
	box-sizing: border-box;
	flex: 0 0 106px;
	height: 106px;
	background: #F8F2EF;
	padding: 28px 24px 0 24px;
}

.cd-gc-name {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: 'Playfair Display', serif !important;
	font-weight: 400 !important;
	font-size: 18px !important;
	line-height: 100% !important;
	color: #4B2FC5;
}

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

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

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

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

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