/* Exhibit Central (rsgdx) plugin — custom-process-section.css
   Process/Artwork homepage section. The step photos are positioned with
   `top` as a PERCENTAGE of the images column's own height (which stretches
   to match the cards column via CSS grid's default align-items:stretch),
   not fixed pixel values — that's what lets them roughly track each
   step's card across screen sizes without needing separate pixel
   adjustments per breakpoint. They're not pixel-perfect pinned to each
   card (that's inherently fragile), but they land "near" the right card
   consistently, which is the actual goal. */

#exhibitrsgdx-main .exhibitrsgdx-process {
	padding: 100px 0;
	background-color: var(--exhibitrsgdx-color-bg);
	overflow: hidden;
}

#exhibitrsgdx-main .exhibitrsgdx-process__inner {
	max-width: var(--exhibitrsgdx-content-max-width);
	margin: 0 auto;
	padding: 0 var(--exhibitrsgdx-space-6);
	display: grid;
	grid-template-columns: 1fr 0.8fr 1fr;
	gap: var(--exhibitrsgdx-space-6);
	align-items: stretch;
}

/* --- Intro column --- */

#exhibitrsgdx-main .exhibitrsgdx-process__intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#exhibitrsgdx-main .exhibitrsgdx-process__eyebrow {
	font-size: var(--exhibitrsgdx-text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--exhibitrsgdx-color-text);
	margin-bottom: var(--exhibitrsgdx-space-3);
}

#exhibitrsgdx-main .exhibitrsgdx-process__title {
	font-size: var(--exhibitrsgdx-text-3xl);
	margin-bottom: var(--exhibitrsgdx-space-4);
}

#exhibitrsgdx-main .exhibitrsgdx-process__desc {
	color: var(--exhibitrsgdx-color-text-muted);
	margin-bottom: var(--exhibitrsgdx-space-5);
}

#exhibitrsgdx-main .exhibitrsgdx-process__buttons {
	display: flex;
	gap: var(--exhibitrsgdx-space-3);
	flex-wrap: wrap;
}

/* --- Scattered step photos --- */

#exhibitrsgdx-main .exhibitrsgdx-process__images {
	position: relative;
	min-height: 480px;
}

#exhibitrsgdx-main .exhibitrsgdx-process__image {
	position: absolute;
	width: 78%;
	max-width: 260px;
	border-radius: 12px;
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
	transform: rotate(var(--exhibitrsgdx-process-rotate, 0deg));
	display: block;
}

#exhibitrsgdx-main .exhibitrsgdx-process__image--left {
	left: 0;
}

#exhibitrsgdx-main .exhibitrsgdx-process__image--right {
	right: 0;
}

/* --- Step cards --- */

#exhibitrsgdx-main .exhibitrsgdx-process__cards {
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-5);
	justify-content: center;
}

#exhibitrsgdx-main .exhibitrsgdx-process__card {
	background: var(--exhibitrsgdx-color-surface);
	border: 1px solid var(--exhibitrsgdx-color-border);
	padding: var(--exhibitrsgdx-space-5);
}

#exhibitrsgdx-main .exhibitrsgdx-process__card-number {
	display: block;
	color: var(--exhibitrsgdx-color-primary);
	font-size: var(--exhibitrsgdx-text-lg);
	font-weight: 800;
	margin-bottom: var(--exhibitrsgdx-space-2);
}

#exhibitrsgdx-main .exhibitrsgdx-process__card-title {
	font-size: var(--exhibitrsgdx-text-md);
	margin-bottom: var(--exhibitrsgdx-space-2);
}

#exhibitrsgdx-main .exhibitrsgdx-process__card-desc {
	color: var(--exhibitrsgdx-color-text-muted);
	font-size: var(--exhibitrsgdx-text-sm);
	margin: 0;
}

/* ==========================================================================
   SCROLL-REVEAL ANIMATION
   Any element with data-animate gets faded/slid in via custom-process-
   section.js (IntersectionObserver adds .is-visible on scroll into view).
   Kept generic (not process-specific class names) so the same data-
   animate attribute could be reused on other sections later if wanted.
   ========================================================================== */

[data-animate] {
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] {
	transform: translateY(30px);
}

[data-animate="fade-in"] {
	transform: translateY(10px);
}

[data-animate].is-visible {
	opacity: 1;
	transform: none;
}

/* --- Mobile: columns stack full-width, same as before — the only change
   here is that the images no longer get hidden. Since they're no longer
   sitting in a tall shared-height column next to the cards once stacked,
   absolute positioning against percentage `top` values doesn't mean
   anything anymore, so they switch to a normal, static, stacked layout
   instead, shown as their own block after the cards. --- */

@media (max-width: 900px) {
	#exhibitrsgdx-main .exhibitrsgdx-process__inner {
		grid-template-columns: 1fr;
	}

	#exhibitrsgdx-main .exhibitrsgdx-process__images {
		position: static;
		min-height: 0;
		display: flex;
		flex-direction: column;
		gap: var(--exhibitrsgdx-space-4);
		margin-top: var(--exhibitrsgdx-space-5);
	}

	#exhibitrsgdx-main .exhibitrsgdx-process__image {
		position: static;
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
		top: auto;
		left: auto;
		right: auto;
	}
}