/*
 * Related Projects band on single posts (the "Related Projects" aside in
 * the single template). A light section-1 band of image cards that sits
 * between the white article and the dark site footer, so the three read
 * as separate sections. Layout, colors and spacing come from block
 * settings; this file only handles link styling and the tablet grid.
 */

/* Card titles read as headings, not underlined body links. */
.related-projects__card .wp-block-post-title a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.related-projects__card:hover .wp-block-post-title a,
.related-projects__card .wp-block-post-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.related-projects__card .wp-block-post-date {
	margin-block-start: var(--wp--preset--spacing--10, 0.25rem);
}

.related-projects__all a {
	text-decoration: none;
	font-weight: 600;
}

.related-projects__all a:hover,
.related-projects__all a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Phone and tablet: 2 x 2, instead of one tall column or an orphaned 3 + 1. */
@media (max-width: 999px) {
	.related-projects .related-projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.related-projects__card .wp-block-post-title a {
		transition: none;
	}
}
