.wi-work-cards__grid {
	display: grid;
	gap: 120px 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Figma: Categories rows 120px, Posts/archive rows 100px. */
.wi-work-cards--posts .wi-work-cards__grid {
	gap: 100px 20px;
}

.wi-work-card {
	margin: 0;
}

.wi-work-card__image {
	aspect-ratio: 452 / 256;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

body #page .wi-work-card__title,
.wi-work-card__title {
	border-top: 2px solid var(--wp--preset--color--teal-light);
	color: var(--wp--preset--color--teal-light);
	font-size: var(--wi-heading-news);
	line-height: 1;
	margin: 20px 0 40px;
	padding-top: 20px;
}

.wi-work-card__title a,
.wi-work-card__title a:visited {
	color: var(--wp--preset--color--teal-light);
}

.wi-work-card__link,
.wi-work-card__link:visited {
	color: var(--wp--preset--color--ink);
}

.wi-work-card__title a:hover,
.wi-work-card__link:hover {
	color: var(--wi-color-link-hover);
}

.wi-work-card__text {
	-webkit-hyphens: auto;
	font-size: 20px;
	font-weight: 300;
	hyphens: auto;
	line-height: 30px;
	margin: 0 0 20px;
	min-height: 84px;
}

.wi-work-card__link {
	color: var(--wp--preset--color--ink);
	display: block;
	font-family: var(--wi-font-body);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	padding-left: 30px;
}

.wi-work-card__link span {
	margin-left: -30px;
}

.wi-figma-pagination {
	align-items: center;
	color: var(--wp--preset--color--teal-light);
	display: flex;
	font-size: 40px;
	gap: 32px;
	justify-content: center;
	line-height: 1.4;
	margin-top: 120px;
}

.wi-figma-pagination a,
.wi-figma-pagination strong,
.wi-figma-pagination span {
	color: inherit;
	font-weight: 400;
}

.wi-figma-pagination strong {
	font-weight: 600;
	letter-spacing: 2px;
}

@media (max-width: 767.98px) {
	.wi-work-cards__grid {
		/* Desktop rows went 120 -> 120/100; mobile is halved the same way the
		   Home columns are (80 -> 40) in the Figma mobile artboard. */
		gap: 60px 20px;
		grid-template-columns: 1fr;
	}

	.wi-work-cards--posts .wi-work-cards__grid {
		gap: 50px 20px;
	}

	body #page .wi-work-card__title,
	.wi-work-card__title {
		font-size: 32px;
		line-height: 1.1;
		margin: 16px 0 24px;
		padding-top: 16px;
	}

	.wi-work-card__text {
		font-size: 16px;
		line-height: 1.5;
		margin-bottom: 16px;
		min-height: 0;
	}

	.wi-work-card__link {
		font-size: 16px;
	}

	.wi-work-card__image {
		height: auto;
		width: 100%;
	}

	.wi-figma-pagination {
		font-size: 24px;
		gap: 14px;
		line-height: 1.4;
		margin-top: 60px;
	}
}

@media (min-width: 768px) and (max-width: 1279px) {
	.wi-work-cards__grid {
		gap: 80px 24px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body #page .wi-work-card__title,
	.wi-work-card__title {
		font-size: clamp(30px, 3.2vw, 40px);
		line-height: 1.05;
	}
}
