/**
 * Homepage news cards — equal height
 * EAEL Post Grid widget: .elementor-element-4210df4
 * (heading: "Onze Laatste NIEUWSberichten" in .elementor-element-2e846171)
 *
 * Scoped to homepage Elementor document .elementor-9 only.
 * Defeats EAEL Isotope masonry so CSS grid can stretch cards per row.
 */

/* Grid shell: replace float/masonry with equal-height rows */
.elementor-9 .elementor-element.elementor-element-4210df4 .eael-post-grid-container .eael-post-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 0;
	margin: 0 -10px;
	height: auto !important;
	/* Cancel Isotope absolute layout leftovers */
	position: relative !important;
}

.elementor-9 .elementor-element.elementor-element-4210df4 .eael-post-grid .eael-grid-post,
.elementor-9 .elementor-element.elementor-element-4210df4 .eael-post-grid .eael-grid-post.eael-post-grid-column {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: 10px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Card stack fills the grid cell */
.elementor-9 .elementor-element.elementor-element-4210df4 .eael-grid-post-holder {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
}

.elementor-9 .elementor-element.elementor-element-4210df4 .eael-grid-post-holder-inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
}

/* Equal image blocks (portrait vs landscape thumbs) */
.elementor-9 .elementor-element.elementor-element-4210df4 .eael-entry-media {
	flex: 0 0 auto;
	width: 100%;
}

.elementor-9 .elementor-element.elementor-element-4210df4 .eael-entry-thumbnail {
	position: relative;
	aspect-ratio: 4 / 3;
	width: 100%;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
}

.elementor-9 .elementor-element.elementor-element-4210df4 .eael-entry-thumbnail > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	vertical-align: middle;
	border-radius: 16px 16px 0 0;
}

/* Text area grows so card bottoms align */
.elementor-9 .elementor-element.elementor-element-4210df4 .eael-entry-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.elementor-9 .elementor-element.elementor-element-4210df4 .eael-entry-header {
	flex: 1 1 auto;
}

/* Tablet: 2 columns (matches EAEL tablet setting) */
@media (max-width: 1024px) {
	.elementor-9 .elementor-element.elementor-element-4210df4 .eael-post-grid-container .eael-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile: 1 column — natural stacked height is fine */
@media (max-width: 767px) {
	.elementor-9 .elementor-element.elementor-element-4210df4 .eael-post-grid-container .eael-post-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
