.rbcc-ew-hero-cinematic {
	position: relative; /* explicit — do not rely on .rbcc-ew inheritance in editor context */
	padding: 0;
	min-height: var(--rbcc-ew-hero-min-height, 780px);
	display: grid;
	align-items: stretch;
	overflow: hidden;
}

/* Override .rbcc-ew.pad-* specificity (0,2,0) so padding is truly 0 */
.rbcc-ew.rbcc-ew-hero-cinematic,
.rbcc-ew.rbcc-ew-hero-cinematic.pad-sm,
.rbcc-ew.rbcc-ew-hero-cinematic.pad-md,
.rbcc-ew.rbcc-ew-hero-cinematic.pad-lg,
.rbcc-ew.rbcc-ew-hero-cinematic.pad-xl {
	padding: 0;
}

/* Full-bleed: break out of any Elementor column/container to span full viewport */
.rbcc-ew-hero-cinematic.rbcc-ew-full-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

@supports (width: 100dvw) {
	.rbcc-ew-hero-cinematic.rbcc-ew-full-bleed {
		width: 100dvw;
		max-width: 100dvw;
		margin-inline: calc(50% - 50dvw);
	}
}

/* Prevent horizontal scrollbar from 100vw breakout on pages without the
   is-rbcc-elementor-fullwidth body class. :has() (Chrome 105+, Safari 15.4+, FF 121+).
   The theme's elementor-compat.css handles body.is-rbcc-elementor-fullwidth. */
@supports selector(body:has(a)) {
	body:has(.rbcc-ew-hero-cinematic.rbcc-ew-full-bleed) {
		overflow-x: clip;
	}
}

.rbcc-ew-hero-cinematic__media,
.rbcc-ew-hero-cinematic__overlay {
	position: absolute;
	inset: 0;
}

.rbcc-ew-hero-cinematic__media {
	background-color: var(--rbcc-ew-fallback-brand);
	background-size: cover;
	background-position: center;
}

.rbcc-ew-hero-cinematic.has-fallback-bg .rbcc-ew-hero-cinematic__media {
	background-image: var(--rbcc-ew-fallback-brand-mesh);
}

.rbcc-ew-hero-cinematic__overlay {
	background: var(--rbcc-ew-fallback-hero-overlay);
}

.rbcc-ew-hero-cinematic .rbcc-ew-container {
	position: relative;
	z-index: 2;
	min-height: var(--rbcc-ew-hero-min-height, 780px);
}

.rbcc-ew-hero-cinematic__inner {
	display: flex;
	min-height: var(--rbcc-ew-hero-min-height, 780px);
	padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.rbcc-ew-hero-cinematic__inner.valign-top { align-items: flex-start; }
.rbcc-ew-hero-cinematic__inner.valign-center { align-items: center; }
.rbcc-ew-hero-cinematic__inner.valign-bottom { align-items: flex-end; }

.rbcc-ew-hero-cinematic__content {
	max-width: var(--rbcc-ew-hero-content-width, 640px);
}

@media (max-width: 767px) {
	.rbcc-ew-hero-cinematic .rbcc-ew-container,
	.rbcc-ew-hero-cinematic__inner {
		min-height: 70vh;
	}
}
