/* Modify Latest Posts — structural CSS only. Fonts/colours come from the widget controls (inherit by default). */
.mlp { width: 100%; }
.mlp * { box-sizing: border-box; }

/* Heading row */
.mlp .mlp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 32px; }
.mlp .mlp__kicker { display: block; font-size: .75em; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin: 0 0 8px; font-family: inherit; }
.mlp .mlp__heading { margin: 0; font-family: inherit; }
.mlp .mlp__all { white-space: nowrap; text-decoration: none; color: inherit; font-family: inherit; }
.mlp .mlp__all:hover { opacity: .7; }

/* Grid */
.mlp .mlp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.mlp .mlp__item { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; margin: 0; }

/* Media */
.mlp .mlp__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #e9e9e6; }
.mlp .mlp__media img,
.mlp .mlp__media .mlp__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s ease; }
.mlp .mlp__ph { display: block; width: 100%; height: 100%; }

/* Body */
.mlp .mlp__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 0 0; }
.mlp .mlp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; font-size: .8em; font-family: inherit; }
.mlp .mlp__terms { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }
.mlp .mlp__term { display: inline-block; }
.mlp .mlp__title { margin: 0 0 8px; font-family: inherit; line-height: 1.25; }
.mlp .mlp__link { color: inherit; text-decoration: none; }
.mlp .mlp__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mlp .mlp__excerpt { margin: 0 0 12px; font-family: inherit; }
.mlp .mlp__more { display: inline-block; margin-top: auto; font-family: inherit; }

/* Layout: overlay */
.mlp.mlp--overlay .mlp__item { display: block; }
.mlp.mlp--overlay .mlp__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 24px 20px 20px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0)); pointer-events: none; }
.mlp.mlp--overlay .mlp__title,
.mlp.mlp--overlay .mlp__meta,
.mlp.mlp--overlay .mlp__excerpt,
.mlp.mlp--overlay .mlp__more { color: #fff; }

/* Layout: list */
.mlp.mlp--list .mlp__item { flex-direction: row; align-items: stretch; gap: 20px; }
.mlp.mlp--list .mlp__media { flex: 0 0 38%; width: 38%; align-self: flex-start; }
.mlp.mlp--list .mlp__body { padding-top: 0; }

/* Hover */
.mlp .mlp__item:hover .mlp__media img { transform: scale(1.04); }

/* Responsive */
@media (max-width: 1024px) {
	.mlp .mlp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.mlp .mlp__grid { grid-template-columns: minmax(0, 1fr); }
	.mlp .mlp__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
	.mlp.mlp--list .mlp__media { flex-basis: 34%; width: 34%; }
}
