/**
 * Project Listing — 8-col image, 50px gap, 4-col meta.
 * Desktop: even rows reverse. Mobile: image stacked above meta.
 */

.elementor-widget-heinz-project-listing,
.elementor-widget-heinz-project-listing > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	height: auto !important;
	min-height: 0 !important;
}

.heinz-project-listing {
	display: flex;
	flex-direction: column;
	gap: 50px;
	width: 100%;
	margin: 0;
}

.heinz-project-listing--empty {
	min-height: 8rem;
}

.heinz-project-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"media"
		"meta";
	row-gap: 1.5rem;
	align-items: start;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.heinz-project-row:hover,
.heinz-project-row:focus-visible {
	color: inherit;
	text-decoration: none;
}

.heinz-project-row__media {
	grid-area: media;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 10;
	background-color: var(--heinz-color-dark-surface);
}

.heinz-project-row__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1);
	transition: transform 0.6s ease;
}

.heinz-project-row:hover .heinz-project-row__image,
.heinz-project-row:focus-visible .heinz-project-row__image {
	transform: scale(1.08);
}

.heinz-project-row__meta {
	grid-area: meta;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.heinz-project-row__index {
	margin: 0;
	color: var(--heinz-color-primary);
	font-family: var(--heinz-font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	letter-spacing: var(--tracking-widest);
	line-height: var(--text-sm--line-height);
	text-transform: uppercase;
}

.heinz-project-row__title {
	margin: 0;
	color: var(--heinz-color-title);
	font-family: var(--heinz-font-heading);
	font-size: var(--text-2xl);
	font-weight: var(--font-weight-medium);
	letter-spacing: -0.5px;
	line-height: var(--leading-tight);
}

.heinz-project-row__category {
	margin: 0;
	color: var(--heinz-color-text);
	font-family: var(--heinz-font-body);
	font-size: var(--text-sm);
	font-weight: 400;
	letter-spacing: 0;
	line-height: var(--text-sm--line-height);
	text-transform: none;
}

.heinz-project-row__excerpt {
	margin: 0;
	color: var(--heinz-color-text);
	font-family: var(--heinz-font-body);
	font-size: var(--text-base);
	line-height: var(--text-base--line-height);
}

.heinz-project-row__rule {
	display: block;
	width: 48px;
	height: 1px;
	margin-block-start: 4px;
	background-color: var(--heinz-color-primary);
}

@media (min-width: 768px) {
	.heinz-project-row {
		grid-template-columns: minmax(0, 8fr) 50px minmax(0, 4fr);
		grid-template-areas: "media . meta";
		align-items: center;
		row-gap: 0;
	}

	.heinz-project-row:nth-child(even) {
		grid-template-columns: minmax(0, 4fr) 50px minmax(0, 8fr);
		grid-template-areas: "meta . media";
	}

	.heinz-project-row:nth-child(even) .heinz-project-row__meta {
		align-items: flex-start;
		text-align: left;
	}

	.heinz-project-row__title {
		font-size: var(--text-3xl);
	}
}

@media (prefers-reduced-motion: reduce) {
	.heinz-project-row__image {
		transition: none;
	}

	.heinz-project-row:hover .heinz-project-row__image,
	.heinz-project-row:focus-visible .heinz-project-row__image {
		transform: none;
	}
}
