/**
 * Project Grid — featured-first layout. First card is 2× wide and 2 rows tall.
 * Below 768px: one column, equal-size cards, width 100%.
 */

.elementor-widget-heinz-project-grid,
.elementor-widget-heinz-project-grid > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible;
}

.elementor-element-499e7ab6,
.elementor-element[data-id="499e7ab6"] {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible;
	z-index: auto;
}

.heinz-project-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: auto;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 0;
	position: relative;
	z-index: 0;
}

.heinz-project-grid > .heinz-project-card {
	grid-column: auto;
	grid-row: auto;
	align-self: start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto;
	min-height: unset;
	aspect-ratio: 3 / 2;
}

.heinz-project-grid--empty {
	min-height: 12rem;
	align-items: center;
	justify-items: start;
}

@media (min-width: 768px) {
	.heinz-project-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 12px 24px;
	}

	.heinz-project-grid > .heinz-project-card--featured,
	.heinz-project-grid > .heinz-project-card:first-child {
		grid-column: 1 / span 4;
		grid-row: 1 / span 2;
		aspect-ratio: unset;
		height: auto;
		min-height: unset;
		align-self: stretch;
	}

	.heinz-project-grid > .heinz-project-card:nth-child(n + 2) {
		grid-column: span 2;
		aspect-ratio: 3 / 2;
		height: auto;
		align-self: start;
	}

	.heinz-project-grid > .heinz-project-card:nth-child(n + 4) {
		grid-column: span 3;
	}

	.heinz-project-grid > .heinz-project-card--featured .heinz-project-card__title {
		font-size: var(--text-4xl);
		line-height: var(--leading-tight);
	}
}

.heinz-project-grid > .heinz-project-card:not(:has(.heinz-project-card__content))::after {
	display: none;
}
