/* Case-study-specific inverse treatment using the shared WebGL renderer. */

.case-study-header::before {
	z-index: 0;
}

.case-study-header-dither__canvas {
	position: absolute;
	z-index: 0;
	inset: 0;
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	pointer-events: none;
}

.case-study-header.is-case-study-dither-live::before {
	display: none;
}

.case-study-header.is-case-study-dither-live .case-study-header-dither__canvas {
	opacity: 1;
}

@media (max-width: 48rem), (prefers-reduced-motion: reduce) {
	.case-study-header-dither__canvas {
		display: none;
	}

	.case-study-header.is-case-study-dither-live::before {
		display: block;
	}
}
