/* Scope the editorial layout to the existing GFBI front-page container. */
.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) {
	--gfbi-home-header-space: 0px;
	--gfbi-home-auto-y: 50%;
	--gfbi-home-photo-ratio: 16 / 9;
	--gfbi-home-photo-height: auto;
	--gfbi-home-control-height: 56.25vw;
	min-height: 0;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	gap: 0;
	padding: var(--gfbi-home-header-space) 0 0;
	background-color: #272f6f;
}

.elementor-element-6777d52.e-con > .elementor-element.gfbi-dissolve-layout-background:has(.gfbi-dissolve) {
	position: relative;
	inset: auto;
	flex: 0 0 auto;
	width: 100%;
	height: var(--gfbi-home-photo-height);
	aspect-ratio: var(--gfbi-home-photo-ratio);
}

.elementor-element-6777d52.e-con > .gfbi-dissolve-layout-background .gfbi-dissolve {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* More specific than Elementor's generic per-motif focal position. */
.elementor-element-6777d52.e-con > .elementor-widget.gfbi-dissolve-layout-background .gfbi-dissolve__photo img {
	object-position: var(--gfbi-home-x, 50%) var(--gfbi-home-y, var(--gfbi-home-auto-y));
}

/* The old snow layer is prepended by GFBI Wetter and otherwise sits below the photos. */
.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) > .gfbi-snow-layer {
	z-index: 1;
	inset-block-start: var(--gfbi-home-header-space);
	inset-block-end: auto;
	width: 100%;
	height: var(--gfbi-home-photo-height);
	aspect-ratio: var(--gfbi-home-photo-ratio);
}

.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) > .gfbi-snow-toggle {
	z-index: 3;
	inset-inline-end: calc(1.65rem + 44px);
	inset-block-start: calc(var(--gfbi-home-header-space) + var(--gfbi-home-control-height) - 54px);
	inset-block-end: auto;
}

.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) > .elementor-element-83d88e1 {
	flex: 0 0 auto;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: clamp(14px, 1.35vw, 28px) clamp(18px, 4vw, 72px);
	background-color: #272f6f;
}

.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) .elementor-element-8cbad4d {
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
}

.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) .elementor-element-8cbad4d > .e-con-inner {
	width: 100%;
	max-width: 1440px;
	min-height: 0;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: clamp(16px, 2.4vw, 48px);
	padding: 0;
}

.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) .elementor-element-bdfa063 {
	flex: 0 0 auto;
	width: clamp(125px, 11vw, 190px);
	max-width: 100%;
	margin: 0;
}

.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) .elementor-element-bdfa063 img {
	display: block;
	width: 100%;
	height: auto;
}

.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) .elementor-element-2b7ee88 {
	flex: 0 1 auto;
	width: auto;
	min-width: 0;
}

.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) .elementor-element-2b7ee88 > .elementor-widget-container {
	margin: 0;
	padding: 0;
	background-color: transparent;
	color: #fff;
}

@media (max-width: 767px) {
	.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) .elementor-element-8cbad4d > .e-con-inner {
		flex-direction: column;
		gap: 14px;
	}
}

@media (min-width: 768px) {
	.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) {
		--gfbi-home-auto-y: 8%;
		--gfbi-home-photo-height: clamp(27vw, 70svh, 38vw);
		--gfbi-home-control-height: var(--gfbi-home-photo-height);
		--gfbi-home-photo-ratio: auto;
	}
}

@media (min-width: 1201px) {
	/* The site's desktop header is absolute and takes up 120px. */
	.elementor-element-6777d52.e-con:has(> .gfbi-dissolve-layout-background .gfbi-dissolve) {
		--gfbi-home-header-space: 120px;
	}
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
	.gfbi-dissolve[data-scroll-effect="zoom"] > .gfbi-dissolve__images {
		transform-origin: center top;
	}

	.gfbi-dissolve[data-native-parallax] > .gfbi-dissolve__images {
		animation: gfbi-scroll-effect 1ms linear both;
		animation-timeline: scroll(root block);
		animation-range: var(--gfbi-parallax-start) var(--gfbi-parallax-end);
	}
}

@keyframes gfbi-scroll-effect {
	from {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
	to {
		transform: translateY(var(--gfbi-parallax-travel)) scale(var(--gfbi-scroll-scale));
		opacity: var(--gfbi-scroll-opacity);
	}
}
