/* Latest Articles: plain cards in a grid. Colours, spacing and corners come from the widget's own
   settings, so this only has to lay things out and set sensible defaults. */

.mst-la {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.mst-la-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
	box-sizing: border-box;
	height: 100%;
}

.mst-la-photo {
	display: block;
	width: 100%;
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: inherit;
}

.mst-la-photo img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.mst-la-card:hover .mst-la-photo img {
	transform: scale(1.04);
}

.mst-la-title {
	margin: 0 0 6px;
	font-size: 1.05em;
	line-height: 1.4;
}

.mst-la-title a {
	color: inherit;
	text-decoration: none;
}

.mst-la-date {
	display: block;
	margin-bottom: 10px;
	font-size: .82em;
	opacity: .7;
}

.mst-la-text {
	margin: 0 0 16px;
	font-size: .92em;
	line-height: 1.7;
}

/* Keeps the link on the bottom edge, so cards of different heights still line up. */
.mst-la-more {
	margin-top: auto;
	text-decoration: none;
	font-size: .9em;
}

.mst-la-more--button {
	padding: 10px 22px;
	border-radius: 10px;
	background: #7a0c2e;
	color: #fff;
	transition: opacity .15s ease;
}

.mst-la-more--button:hover {
	opacity: .88;
	color: #fff;
}

.mst-la-more--link {
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

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

@media (max-width: 767px) {
	.mst-la {
		grid-template-columns: 1fr;
	}
}

/* Page numbers under the cards. */
.mst-la-pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}

.mst-la-pages a,
.mst-la-pages span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	text-decoration: none;
	font-size: .9em;
	line-height: 1;
	box-sizing: border-box;
	transition: background-color .15s ease, border-color .15s ease;
}

.mst-la-pages a:hover {
	background: #f4f4f4;
}

.mst-la-pages .current {
	background: #7a0c2e;
	border-color: #7a0c2e;
	color: #fff;
}

.mst-la-pages .dots {
	border-color: transparent;
}
