[data-testid="switcher-rail"]::-webkit-scrollbar { display: none; }

.nessa-home-hero-media {
	aspect-ratio: 16 / 9;
	min-height: min-content;
}

@media (min-width: 1024px) and (min-height: 680px) {
	.nessa-home-hero-media {
		max-height: calc(100vh - 6rem);
	}
}

@media (max-width: 639px), (orientation: landscape) and (max-height: 480px) {
	.nessa-home-hero-media {
		aspect-ratio: auto;
	}
}

@media (min-width: 1280px), (min-width: 1024px) and (pointer: fine), (min-width: 1024px) and (pointer: none) {
	.nessa-home-hero-media {
		/* The fixed header is reserved by body padding and the hero spacer. */
		--nessa-home-hero-offset: calc(var(--nessa-topbar-height) + var(--nessa-header-row-height) + var(--wp-admin--admin-bar--height, 0px));
		aspect-ratio: auto;
		min-height: calc(100vh - var(--nessa-home-hero-offset));
		min-height: calc(100dvh - var(--nessa-home-hero-offset));
		max-height: none;
	}

	.nessa-home-hero-media > video {
		object-position: center bottom;
	}

	@media (max-height: 640px) {
		.nessa-home-hero-copy {
			padding-block: clamp(1rem, calc(20vh - 80px), 3rem);
		}

		.nessa-home-hero-copy [data-testid="hero-headline"] > span {
			font-size: clamp(2rem, 9vh, 4rem);
		}
	}

	@media (prefers-reduced-motion: no-preference) {
		@keyframes nessa-home-hero-fade-in {
			from { opacity: 0; }
			to { opacity: 1; }
		}

		[data-testid="hero-section"] {
			animation-name: nessa-home-hero-fade-in;
		}
	}
}

@media (max-width: 639px) {
	.nessa-home-hero-scrim {
		height: 100%;
		background: linear-gradient(180deg, rgba(15, 23, 42, .4), rgba(15, 23, 42, .64) 64%, rgba(15, 23, 42, .26));
	}

	.nessa-home-hero-media [data-testid="hero-headline"] > span {
		font-size: clamp(1.875rem, 8vw, 2.25rem);
	}
}
