/**
 * MRMVR Elements — the band an RTO Page section sits in.
 *
 * A background colour, the space above and below, and a content width, all
 * written on the element as custom properties by the widget so they follow the
 * panel controls. With "Full-Width Background" on, the colour runs edge to edge
 * of the screen however narrow the container around the widget is: the shadow
 * paints beyond the box and the clip-path trims it to the box's top and bottom,
 * which paints the width without making the page scroll sideways.
 *
 * @package MRMVR\Elements
 * @since   1.53.0
 */

.mrx-rto {
	--rto-bg: #ffffff;
	--rto-py: 96px;
	--rto-py-t: 72px;
	--rto-py-m: 53px;
	--rto-px: 24px;
	--rto-max: 1240px;

	position: relative;
	box-sizing: border-box;
	padding: var(--rto-py) var(--rto-px);
	background-color: var(--rto-bg);
}

.mrx-rto--bleed {
	box-shadow: 0 0 0 100vmax var(--rto-bg);
	clip-path: inset(0 -100vmax);
}

.mrx-rto__in {
	box-sizing: border-box;
	max-width: var(--rto-max);
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 1024px) {
	.mrx-rto {
		padding-top: var(--rto-py-t);
		padding-bottom: var(--rto-py-t);
	}
}

@media (max-width: 767px) {
	.mrx-rto {
		--rto-px: 16px;

		padding-top: var(--rto-py-m);
		padding-bottom: var(--rto-py-m);
	}
}
