.mb-cards {
	box-sizing: border-box;
	width: auto;
	padding: 1.5rem var(--mb-gutter, 10px);
	background: #f6f6f6;
}

.mb-cards__inner {
	display: grid;
	box-sizing: border-box;
	width: min(100%, var(--mb-content-width, 1200px));
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0 auto;
}

.mb-cards__card {
	display: flex;
	box-sizing: border-box;
	min-width: 0;
	flex-direction: column;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 7px;
	background: #fff;
}

.mb-cards__media {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 550 / 350;
	border-radius: 6px;
}

.mb-cards__image,
.mb-cards__image-placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.mb-cards__image-placeholder {
	display: grid;
	background: #eee;
	color: #555;
	place-items: center;
}

.mb-cards__content {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding-top: 1rem;
}

.mb-cards__heading {
	overflow: hidden;
	margin: 0 0 0.25rem;
	color: #005695;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mb-cards__text {
	display: -webkit-box;
	overflow: hidden;
	hyphens: auto;
	margin: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	line-height: 1.5;
}

.mb-cards__button {
	display: inline-block;
	align-self: flex-end;
	max-width: 100%;
	overflow: hidden;
	margin-top: 0.5rem;
	padding: 0.35rem 0.875rem;
	border: 1px solid #005695;
	border-radius: 7px;
	background: #fff;
	color: #005695;
	text-align: center;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.mb-cards__button:hover,
a.mb-cards__button:focus-visible {
	background: #005695;
	color: #fff;
}

a.mb-cards__button:focus-visible {
	outline: 3px solid #f2a900;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.mb-cards__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.mb-cards {
		padding: 1.25rem var(--mb-gutter, 10px);
	}

	.mb-cards__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}
