.site-masthead {
	--masthead-image-size: clamp(64px, 13vw, 160px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
	align-items: center;
	gap: 0;
	padding: 2px 12px;
	background: #fff;
	border-bottom: 1px solid #ddd;
}

.masthead-motto,
.masthead-school-name,
.masthead-crest {
	display: block;
	width: min(100%, var(--masthead-image-size));
	height: auto;
	object-fit: contain;
}

.masthead-motto {
	justify-self: end;
}

.masthead-school-name {
	justify-self: center;
}

.masthead-crest {
	justify-self: start;
	width: calc(var(--masthead-image-size) / 2);
	max-width: 100%;
	perspective: 600px;
	transform-style: preserve-3d;
	animation: crest-vertical-flip 6s linear infinite;
}

.masthead-school-name {
	width: min(100%, calc(var(--masthead-image-size) * 3), 60vw);
}

@keyframes crest-vertical-flip {
	to {
		transform: rotateY(360deg);
	}
}
