/* SGE — Full-bleed image break band */

.sge-imgbreak {
	--sge-imgbreak-image: none;
	--sge-imgbreak-height: clamp(18rem, 42vh, 28rem);
	--sge-imgbreak-focal: center center;
	--sge-imgbreak-gold: #f2e90d;
	position: relative;
	display: flex;
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	min-height: var(--sge-imgbreak-height);
	overflow: hidden;
	isolation: isolate;
	background-color: #1a1a1a;
}

/* Let the band escape its (possibly padded) Elementor widget container. */
.elementor-widget-container:has(> .sge-imgbreak) {
	overflow: visible !important;
}

.sge-imgbreak__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--sge-imgbreak-image);
	background-repeat: no-repeat;
	background-position: var(--sge-imgbreak-focal);
	background-size: cover;
}

/* Parallax previously used `background-attachment: fixed`, which glitches /
   judders badly on scroll — especially on these full-bleed 100vw bands and in
   Chromium. Use a GPU-friendly static cover with a subtle overscan instead. */
.sge-imgbreak--parallax .sge-imgbreak__media {
	background-attachment: scroll;
	transform: scale(1.04);
	transform-origin: center;
	backface-visibility: hidden;
}

/* Overlay for legibility */
.sge-imgbreak::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(15, 15, 15, 0.72) 0%, rgba(15, 15, 15, 0.35) 45%, rgba(15, 15, 15, 0.12) 100%);
}

.sge-imgbreak--overlay-light::before {
	background: linear-gradient(90deg, rgba(15, 15, 15, 0.5) 0%, rgba(15, 15, 15, 0.18) 55%, rgba(15, 15, 15, 0) 100%);
}

.sge-imgbreak--overlay-strong::before {
	background: linear-gradient(90deg, rgba(12, 12, 12, 0.82) 0%, rgba(12, 12, 12, 0.52) 50%, rgba(12, 12, 12, 0.28) 100%);
}

.sge-imgbreak--align-right::before {
	transform: scaleX(-1);
}

.sge-imgbreak--align-center::before {
	background: linear-gradient(180deg, rgba(12, 12, 12, 0.3) 0%, rgba(12, 12, 12, 0.62) 100%);
}

.sge-imgbreak__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	max-width: 76rem;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 4.375rem);
}

.sge-imgbreak__content {
	max-width: 34rem;
}

.sge-imgbreak--align-right .sge-imgbreak__inner {
	align-items: flex-end;
	text-align: right;
}

.sge-imgbreak--align-right .sge-imgbreak__content {
	margin-left: auto;
}

.sge-imgbreak--align-center .sge-imgbreak__inner {
	align-items: center;
	text-align: center;
	justify-content: center;
}

.sge-imgbreak--align-center .sge-imgbreak__content {
	margin-inline: auto;
}

.sge-imgbreak__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--sge-imgbreak-gold);
	font-family: "DM Sans", sans-serif;
	font-size: clamp(0.72rem, 1.1vw, 0.8125rem);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sge-imgbreak__heading {
	margin: 0;
	color: #ffffff;
	font-family: "Bebas Neue", sans-serif;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.sge-imgbreak__caption {
	margin: 0.85rem 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-family: "DM Sans", sans-serif;
	font-size: clamp(0.98rem, 1.4vw, 1.125rem);
	line-height: 1.6;
}

/* Parallax is jittery on touch / small screens and undesirable when the user
   prefers reduced motion — fall back to a static cover image. */
@media (max-width: 1024px) {
	.sge-imgbreak--parallax .sge-imgbreak__media {
		background-attachment: scroll;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sge-imgbreak--parallax .sge-imgbreak__media {
		background-attachment: scroll;
	}
}

@media (max-width: 600px) {
	.sge-imgbreak {
		--sge-imgbreak-height: clamp(15rem, 60vw, 22rem);
	}

	.sge-imgbreak--align-right .sge-imgbreak__inner,
	.sge-imgbreak--align-right .sge-imgbreak__content {
		align-items: flex-start;
		text-align: left;
		margin-left: 0;
	}

	.sge-imgbreak--align-right::before {
		transform: none;
	}
}
