@media (max-width: 780px) {
	.contact-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 520px) {
	.contact-form .form-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (width < 363px) {
	.contact-panel .contact-intro .section-title {
		/* The shell leaves 21px on each side. Allow for the wider fallback font. */
		font-size: calc((100vw - 42px) / 6.1);
	}
}

@media (363px <= width < 382px) {
	.contact-panel .contact-intro .section-title {
		/* Match the x-height of Cormorant Garamond when its wider fallback is used. */
		font-size-adjust: 0.386;
	}

	@supports not (font-size-adjust: 0.386) {
		.contact-panel .contact-intro .section-title {
			font-size: min(56px, calc((100vw - 42px) / 6.1));
		}
	}
}

@media (max-width: 780px) and (max-height: 575px) {
	.site-nav {
		justify-content: flex-start;
		justify-content: safe center;
		padding-block: 88px 24px;
		overflow-y: auto;
		overscroll-behavior-y: contain;
	}
}
