/*
 * Contact page "Office Locations" grid: three offices as one balanced row.
 * The theme's grid is 2-up from 768px, which leaves the third office alone
 * on a second row. Scoped to exactly three offices, so any other count
 * (e.g. four, if an office reopens) falls back to the theme's 2-up grid.
 */
@media (min-width: 768px) and (max-width: 991.98px) {
	.page-template-contact-page .contact-address-grid:has(> .contact-address-grid__item:nth-child(3):last-child) {
		grid-template-columns: 1fr;
	}
	.page-template-contact-page .contact-address-grid:has(> .contact-address-grid__item:nth-child(3):last-child) > .contact-address-grid__item {
		flex-direction: row;
		align-items: center;
	}
	.page-template-contact-page .contact-address-grid:has(> .contact-address-grid__item:nth-child(3):last-child) .contact-address-grid__map {
		flex: 0 0 50%;
	}
}

@media (min-width: 992px) {
	.page-template-contact-page .contact-address-grid:has(> .contact-address-grid__item:nth-child(3):last-child) {
		grid-template-columns: repeat(3, 1fr);
	}
	.page-template-contact-page .contact-address-grid:has(> .contact-address-grid__item:nth-child(3):last-child) .contact-address-grid__map {
		flex: 0 0 auto;
		height: 240px;
	}
}
