/* =========================================================
   Photo Story — full-bleed hero + cover-block sections
   ========================================================= */

.photo-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--bg-elevated);
	background-size: cover;
	background-position: center;
	background-attachment: fixed; /* native, lightweight parallax base */
	overflow: hidden;
	text-align: center;
	padding: 40px 24px;
}
.photo-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.2) 40%,
		rgba(0, 0, 0, 0.8) 100%
	);
}
.photo-hero__content {
	position: relative;
	z-index: 2;
	max-width: 820px;
	color: #fff;
}
.photo-hero__content .entry-kicker {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 14px;
}
.photo-hero__title {
	font-size: clamp(2.2rem, 6vw, 4rem);
	margin-bottom: 14px;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.photo-hero__content .entry-meta {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}
.photo-hero__scroll-cue {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: #fff;
	font-size: 1.4rem;
	opacity: 0.8;
	animation: nocturne-bounce 2.2s ease-in-out infinite;
}
@keyframes nocturne-bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 10px); }
}

/* Mobile: background-attachment:fixed is unreliable on iOS Safari, so fall back
   to scroll (still full-bleed, just not fixed) and shrink the hero a bit. */
@media (max-width: 700px) {
	.photo-hero { background-attachment: scroll; min-height: 70vh; }
}

/* Body copy between/after image sections */
.photo-story__body {
	max-width: var(--max-width);
	margin: 72px auto;
	padding: 0 24px;
	font-size: 1.08rem;
}
.photo-story__body p { margin-bottom: 1.6em; }
.photo-story__footer { max-width: var(--max-width); margin: 0 auto 64px; padding: 0 24px; }

/* Core "Cover" blocks used inside a Photo Story become full-bleed,
   text-over-image sections with their own scroll-triggered parallax + fade. */
.type-photo_story .entry-content .wp-block-cover,
.photo-story__body .wp-block-cover {
	min-height: 96vh;
	margin: 64px 0;
	border-radius: 0;
	overflow: hidden;
}
.photo-story__body .wp-block-cover:not(.alignfull) {
	border-radius: var(--radius);
}
.photo-story__body .wp-block-cover .wp-block-cover__inner-container {
	max-width: 720px;
	color: #fff;
}
.photo-story__body .wp-block-cover__image-background,
.photo-story__body .wp-block-cover__video-background {
	transition: transform 0.1s linear;
	will-change: transform;
	transform: scale(1.12); /* headroom so the JS parallax never reveals an edge */
}
.photo-story__body .wp-block-cover h2,
.photo-story__body .wp-block-cover p {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* Fade-in for cover sections and body paragraphs as they scroll into view.
   Slower and with a touch of scale, so each section feels like it's
   surfacing out of the dark rather than just appearing. */
.photo-story__body .wp-block-cover,
.photo-story__body > .entry-content > * {
	opacity: 0;
	transform: translateY(40px) scale(0.98);
	transition: opacity 1.4s ease, transform 1.4s ease;
}
.photo-story__body .wp-block-cover.is-visible,
.photo-story__body > .entry-content > *.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.photo-story__body .wp-block-cover,
	.photo-story__body > .entry-content > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.photo-hero { background-attachment: scroll; }
}
