/* components/before-after-feature/before-after-feature.css
 *
 * Featured-project block: editorial column + draggable before/after slider.
 * Layouts: image-right (default), image-left, stack. Two-col layouts collapse
 * to single-column on tablet/mobile. The slider itself is styled by the
 * before-after-slider component CSS — this file owns the section frame + the
 * text column only.
 *
 * --mvc-baf-cols is set inline by the PHP when the column ratio !== 50-50.
 */

.mvc-baf {
	padding-block: var(--space-20);
}

.mvc-baf__inner {
	display: grid;
	gap: var(--space-12);
	align-items: center;
}

/* Two-column layouts — desktop grid */
.mvc-baf--image-right .mvc-baf__inner,
.mvc-baf--image-left  .mvc-baf__inner {
	grid-template-columns: var(--mvc-baf-cols, 1fr 1fr);
}

/* Stack layout: single column, slider below text, both centered */
.mvc-baf--stack .mvc-baf__inner {
	grid-template-columns: minmax(0, 1fr);
	max-width: 56rem;
	margin-inline: auto;
}

/* Tablet + mobile: every layout stacks to a single column */
@media (max-width: 900px) {
	.mvc-baf--image-right .mvc-baf__inner,
	.mvc-baf--image-left  .mvc-baf__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── Text column ───────────────────────────────────────────────────────── */

.mvc-baf__body {
	min-width: 0; /* prevent grid overflow when WYSIWYG has long words */
}

.mvc-baf__eyebrow {
	margin-block-end: var(--space-3);
}

.mvc-baf__title {
	margin-block: 0 var(--space-4);
}

.mvc-baf__content {
	margin-block-end: var(--space-6);
}

.mvc-baf__content :last-child {
	margin-block-end: 0;
}

.mvc-baf__cta {
	margin-block-start: var(--space-6);
}

/* ── Media column ──────────────────────────────────────────────────────── */

.mvc-baf__media {
	min-width: 0;
}

/* Stack: cap the slider width so it doesn't dominate the page on wide viewports */
.mvc-baf--stack .mvc-baf__media {
	max-width: 56rem;
	margin-inline: auto;
	width: 100%;
}
</content>
