/* Subpage hero: native fixed photo, clipped to its scrolling container.
   No scroll-time JavaScript, source swap, or delayed initialization. */
.subpage-parallax {
	position: relative;
	background: var(--color-background);
}
@supports (clip-path: inset(0)) {
	@media screen and (prefers-reduced-motion: no-preference) {
		.subpage-parallax {
			clip-path: inset(0);
		}
		.subpage-parallax > .subpage-parallax-image {
			position: fixed;
			top: 0;
			left: 50%;
			width: min(1200px, calc(100% - var(--gutter) * 2));
			max-width: none;
			height: 100vh;
			height: 100lvh;
			object-fit: cover;
			object-position: var(--subpage-hero-position, center);
			transform: translateX(-50%);
		}
		@media (width < 768px) {
			.subpage-parallax > .subpage-parallax-image {
				width: 100%;
			}
		}
	}
}
