/*
 * One scroll-controlled translucent layer over the theme's fixed project
 * background. Media and text remain fully opaque.
 */
body.single-project .header-background,
body.single-project.reiji-project-v1-content-visible .header-background {
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 0 !important;
}

body.single-project .header-background::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .75);
	opacity: 0;
	transition: opacity .55s ease;
	pointer-events: none;
}

body.single-project .header-background.active::after,
body.single-project.reiji-project-v1-content-visible .header-background::after {
	opacity: 1;
}

body.single-project .site-main {
	position: relative;
	z-index: 1;
}

body.single-project .reiji-project-v1,
body.single-project .reiji-project-v1::before {
	background: transparent !important;
}

body.single-project:not(:has([data-reiji-project-v1])) .post-content {
	position: relative;
	isolation: isolate;
}

body.single-project:not(:has([data-reiji-project-v1])) .post-content::before {
	content: none;
}

@media (max-width: 900px) {
	body.single-project .reiji-project-v1__credits-list {
		grid-template-columns: 1fr;
		row-gap: 0;
	}

	body.single-project .reiji-project-v1__credit {
		grid-template-columns: 1fr;
		gap: 2px;
		margin-bottom: 14px;
	}

	body.single-project .reiji-project-v1__credit-separator {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-project .header-background::after {
		transition: none;
	}
}
