/* WTL pattern extensions: blocks remain editable without this file; this adds the enhanced layouts. */
.wtl-horizontal-snap {
	display: flex;
	gap: 18px;
	justify-content: flex-start;
	overflow-x: auto;
	padding: 8px 2px 22px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.wtl-horizontal-snap > .wtl-snap-card {
	flex: 0 0 min(78vw, 360px);
	scroll-snap-align: start;
}

.wtl-sticky-split > .wp-block-column:first-child .wtl-sticky-visual {
	position: sticky;
	top: 24px;
}

.wtl-overlap-stack {
	align-items: end;
	display: grid;
	grid-template-columns: 1fr 42%;
}

.wtl-overlap-stack > .wp-block-image:first-child {
	grid-area: 1 / 1 / 3 / 3;
}

.wtl-overlap-stack > .wp-block-image:last-child {
	grid-area: 2 / 2 / 4 / 4;
	margin: 0 0 -12% -22%;
	position: relative;
}

.wtl-hover-project-index .wtl-project-row {
	transition: background-color .25s ease, transform .25s ease;
}

.wtl-hover-project-index .wtl-project-row:hover,
.wtl-hover-project-index .wtl-project-row:focus-within {
	background: rgb(255 255 255 / 38%);
	transform: translateX(8px);
}

@media (max-width: 700px) {
	.wtl-sticky-split > .wp-block-column:first-child .wtl-sticky-visual {
		position: static;
	}

	.wtl-overlap-stack > .wp-block-image:last-child {
		margin-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wtl-horizontal-snap {
		scroll-behavior: auto;
	}

	.wtl-hover-project-index .wtl-project-row {
		transition: none;
	}
}

/* Immersive collection: the canvas block remains a replaceable visual layer; copy stays in Core blocks. */
.wtl-immersive-hero-row > * { flex: 1 1 28rem; }
.wtl-immersive-hero-row .wtl-immersive-visual { min-width: min(100%, 28rem); }
.wtl-k-glsl-distortion { position: relative; }
.wtl-k-glsl-distortion .wtl-overlay-copy { margin: clamp(-180px,-18vw,-96px) auto 0; max-width: 56rem; padding: clamp(28px,5vw,64px); position: relative; z-index: 2; }
.wtl-dimensional-overlap { display: grid; grid-template: 1fr / 1fr; }
.wtl-dimensional-overlap > * { grid-area: 1 / 1; }
.wtl-dimensional-overlap > .wp-block-heading { align-self: center; mix-blend-mode: multiply; padding: clamp(16px,5vw,72px); pointer-events: none; position: relative; z-index: 3; }
.wtl-scene-deck .wp-block-cover { min-height: min(76vh,760px); }
.wtl-scene-deck .wp-block-cover + .wp-block-cover { margin-top: clamp(18px,4vw,54px); }
.fx-scene-wipe,.fx-scene-zoom,.fx-scene-slide { animation: wtlSceneReveal 1s cubic-bezier(.2,.75,.2,1) both; view-timeline-name: --wtl-scene; view-timeline-axis: block; animation-timeline: --wtl-scene; animation-range: entry 12% cover 42%; }
.fx-scene-zoom { --wtl-scene-x: 0; --wtl-scene-scale: 1.08; }
.fx-scene-slide { --wtl-scene-x: 7vw; --wtl-scene-scale: 1; }
.wtl-kinetic-poster-copy { margin-top: clamp(-110px,-11vw,-52px); padding: clamp(22px,5vw,58px); position: relative; z-index: 2; }
.fx-kinetic-type { letter-spacing: -.055em; line-height: .86; }
.fx-blackletter-stack { font-family: Georgia,"Times New Roman",serif; font-style: italic; letter-spacing: -.07em; line-height: .72; }
.fx-ascii-type { font-family: ui-monospace,"Cascadia Mono","SFMono-Regular",monospace; letter-spacing: -.06em; }
.fx-mixed-type strong,.wtl-pixel-projects > *:nth-child(even) { font-family: Georgia,serif; font-style: italic; }
.wtl-video-scrub-layout > .wp-block-column:first-child { position: sticky; top: 24px; }
.wtl-fluid-story-card { margin: clamp(-240px,-24vw,-120px) auto 0; max-width: 58rem; padding: clamp(28px,6vw,72px); position: relative; z-index: 2; }
.wtl-festival-meta,.wtl-poster-index,.wtl-project-meta { border-bottom: 2px solid currentColor; border-top: 2px solid currentColor; padding: 12px 0; }
.fx-retro-bounce { animation: wtlRetroNudge 1.8s steps(2,end) infinite alternate; transform-origin: left center; }
.fx-retro-card { border: 2px solid currentColor; box-shadow: 8px 8px 0 currentColor; }

@keyframes wtlSceneReveal {
	from { clip-path: inset(16% 8%); opacity: .25; transform: translateX(var(--wtl-scene-x,0)) scale(var(--wtl-scene-scale,1)); }
	to { clip-path: inset(0); opacity: 1; transform: none; }
}
@keyframes wtlRetroNudge { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }

@media (max-width: 700px) {
	.wtl-k-glsl-distortion .wtl-overlay-copy,.wtl-fluid-story-card,.wtl-kinetic-poster-copy { margin-top: -48px; }
	.wtl-dimensional-overlap > .wp-block-heading { align-self: end; }
	.wtl-video-scrub-layout > .wp-block-column:first-child { position: static; }
}

@media (prefers-reduced-motion: reduce) {
	.fx-scene-wipe,.fx-scene-zoom,.fx-scene-slide,.fx-retro-bounce { animation: none !important; transform: none !important; }
}
