/**
 * AGOOD Elementor Effects: Scroll Story
 *
 * The sticky media panel requires every ancestor to keep overflow visible and
 * avoid transforms. Elementor container settings can override those browser
 * requirements, so this component deliberately does not force ancestor styles.
 */

.agood-scroll-story {
	--agood-scroll-story-media-width: 52%;
	--agood-scroll-story-column-gap: clamp(2rem, 6vw, 7rem);
	--agood-scroll-story-sticky-offset: 6rem;
	--agood-scroll-story-media-height: min(72vh, 48rem);
	--agood-scroll-story-step-height: max(68vh, 32rem);
	--agood-scroll-story-transition-duration: 500ms;
	--agood-scroll-story-transition-easing: cubic-bezier(0.22, 1, 0.36, 1);
	--agood-scroll-story-accent: #56745f;
	--agood-scroll-story-background-text: #fff;
	--agood-scroll-story-overlay: rgba(12, 20, 16, 0.62);
	--agood-scroll-story-content-max-width: 620px;
	--agood-scroll-story-content-container-width: 1100px;
	--agood-scroll-story-content-side-padding: 24px;
	--agood-scroll-story-background-frame-height: 100vh;
	--agood-scroll-story-background-total-height: 550vh;
	--agood-scroll-story-background-trigger-height: 137.5vh;
	--agood-scroll-story-bottom-content-height: clamp(9.5rem, 24vh, 13.5rem);
	--agood-scroll-story-intro-background: #e7f3ef;
	--agood-scroll-story-intro-heading: #18201b;
	--agood-scroll-story-intro-description: #596d66;
	position: relative;
	width: 100%;
}

@supports (height: 100svh) {
	.agood-scroll-story {
		--agood-scroll-story-media-height: min(72svh, 48rem);
		--agood-scroll-story-step-height: max(68svh, 32rem);
	}

}

.agood-scroll-story__intro {
	width: 100%;
	background-color: var(--agood-scroll-story-intro-background);
}

.agood-scroll-story__intro-inner {
	box-sizing: border-box;
	width: 100%;
	padding-block: clamp(4rem, 7vw, 6rem);
	padding-inline: max(
		var(--agood-scroll-story-content-side-padding),
		calc((100% - var(--agood-scroll-story-content-container-width)) / 2)
	);
}

.agood-scroll-story__intro-content {
	width: 100%;
	max-width: 100%;
}

.agood-scroll-story__intro-heading {
	margin: 0;
	color: var(--agood-scroll-story-intro-heading);
	font-size: clamp(2.5rem, 4.2vw, 4rem);
	font-weight: 400;
	line-height: 1.08;
}

.agood-scroll-story__intro-description {
	margin-top: clamp(0.65rem, 1.2vw, 1rem);
	color: var(--agood-scroll-story-intro-description);
	font-size: clamp(1.05rem, 1.6vw, 1.4rem);
	line-height: 1.7;
}

.agood-scroll-story__intro-description > :first-child {
	margin-top: 0;
}

.agood-scroll-story__intro-description > :last-child {
	margin-bottom: 0;
}

.agood-scroll-story__intro-button {
	display: inline-flex;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	padding: 1rem 2rem;
	border-radius: 100px;
	align-items: center;
	justify-content: center;
	background-color: #145246;
	color: #fff;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-decoration-line: none !important;
	transition:
		background-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.agood-scroll-story__intro-button:hover,
.agood-scroll-story__intro-button:focus-visible,
.agood-scroll-story__intro-button:visited {
	background-color: #0e4037;
	color: #fff;
	text-decoration: none !important;
	text-decoration-line: none !important;
	transform: translateY(-1px);
}

.agood-scroll-story__step-heading {
	margin: 0 0 clamp(0.45rem, 0.9vw, 0.75rem);
}

.agood-scroll-story__step-description {
	margin: 0;
}

.agood-scroll-story__step-description > :first-child {
	margin-top: 0;
}

.agood-scroll-story__step-description > :last-child {
	margin-bottom: 0;
}

.agood-scroll-story__intro-button:focus-visible {
	outline: 3px solid rgba(20, 82, 70, 0.3);
	outline-offset: 3px;
}

.agood-scroll-story__layout {
	display: grid;
	grid-template-columns: minmax(0, var(--agood-scroll-story-media-width)) minmax(0, 1fr);
	column-gap: var(--agood-scroll-story-column-gap);
	align-items: start;
}

.agood-scroll-story__layout > * {
	min-width: 0;
}

.agood-scroll-story[data-media-position='right'] .agood-scroll-story__layout {
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--agood-scroll-story-media-width));
}

.agood-scroll-story[data-media-position='right'] .agood-scroll-story__media {
	order: 2;
}

.agood-scroll-story[data-media-position='right'] .agood-scroll-story__steps {
	order: 1;
}

.agood-scroll-story[data-layout-mode='background'] {
	--agood-scroll-story-sticky-offset: 0px;
	--agood-scroll-story-background-frame-height: 100vh;
}

@supports (height: 100svh) {
	.agood-scroll-story[data-layout-mode='background'] {
		--agood-scroll-story-background-frame-height: 100svh;
	}
}

.agood-scroll-story.has-no-media .agood-scroll-story__layout {
	grid-template-columns: minmax(0, 1fr);
}

.agood-scroll-story.has-no-media .agood-scroll-story__media {
	display: none;
}

.agood-scroll-story.has-no-media .agood-scroll-story__steps {
	order: initial;
}

.agood-scroll-story.has-no-media .agood-scroll-story__step {
	min-height: 0;
}

.agood-scroll-story.has-no-media .agood-scroll-story__step + .agood-scroll-story__step {
	margin-top: clamp(2.5rem, 8vw, 5rem);
}

/* Keep the server-rendered background fallback readable before enhancement. */
.agood-scroll-story.has-intro[data-layout-mode='background']:not(.is-enhanced):not(.is-editor-preview) .agood-scroll-story__intro {
	grid-column: 1 / -1;
}

.agood-scroll-story__media {
	position: sticky;
	top: var(--agood-scroll-story-sticky-offset);
	height: min(72vh, 48rem);
	height: var(--agood-scroll-story-media-height);
	min-height: 24rem;
	overflow: hidden;
	isolation: isolate;
}

.agood-scroll-story__media-item {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	opacity: 0;
	transform: scale(1.015);
	pointer-events: none;
	transition:
		opacity var(--agood-scroll-story-transition-duration) var(--agood-scroll-story-transition-easing),
		transform var(--agood-scroll-story-transition-duration) var(--agood-scroll-story-transition-easing);
}

/* The first frame is a useful no-JavaScript and pre-initialisation fallback. */
.agood-scroll-story__media-item:first-child,
.agood-scroll-story__media-item.is-active {
	z-index: 1;
	opacity: 1;
	transform: scale(1);
}

.agood-scroll-story.is-enhanced:not(.is-mobile) .agood-scroll-story__media-item:first-child:not(.is-active) {
	z-index: 0;
	opacity: 0;
	transform: scale(1.015);
}

.agood-scroll-story__media-item img,
.agood-scroll-story__media-item picture,
.agood-scroll-story__media-item video {
	display: block;
	width: 100%;
	height: 100%;
}

.agood-scroll-story__media-item img,
.agood-scroll-story__media-item video {
	object-fit: cover;
}

.agood-scroll-story__steps {
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* These controls are only part of the enhanced desktop background layout. */
.agood-scroll-story__progress,
.agood-scroll-story__triggers {
	display: none;
}

.agood-scroll-story__progress-control {
	display: block;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	appearance: none;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: start;
	text-shadow: inherit;
	text-transform: none;
	pointer-events: none;
}

.agood-scroll-story__progress-title-mobile {
	display: none;
}

.agood-scroll-story__step {
	display: flex;
	min-height: max(68vh, 32rem);
	min-height: var(--agood-scroll-story-step-height);
	padding-inline-start: clamp(1rem, 2vw, 1.5rem);
	border-inline-start: 2px solid transparent;
	flex-direction: column;
	justify-content: center;
	list-style: none;
	opacity: 1;
	transition: border-color var(--agood-scroll-story-transition-duration) ease;
}

.agood-scroll-story.is-enhanced:not(.is-mobile) .agood-scroll-story__step.is-active {
	border-inline-start-color: var(--agood-scroll-story-accent);
}

/*
 * JavaScript adds .is-mobile using each widget's data-mobile-breakpoint value,
 * then moves every media item into its matching text step. This produces a
 * normal image-and-copy document flow without duplicating content or requests.
 */
.agood-scroll-story.is-mobile .agood-scroll-story__layout {
	display: block;
}

.agood-scroll-story.is-mobile .agood-scroll-story__media {
	display: none;
}

.agood-scroll-story.is-mobile .agood-scroll-story__progress,
.agood-scroll-story.is-mobile .agood-scroll-story__triggers {
	display: none;
}

.agood-scroll-story.is-mobile .agood-scroll-story__step {
	display: block;
	min-height: 0;
	padding-inline-start: 0;
	border-inline-start-color: transparent;
	opacity: 1;
}

.agood-scroll-story.is-mobile .agood-scroll-story__step-inner {
	padding-inline: max(16px, var(--agood-scroll-story-content-side-padding));
}

.agood-scroll-story.is-mobile .agood-scroll-story__step + .agood-scroll-story__step {
	margin-top: clamp(2.5rem, 12vw, 5rem);
}

.agood-scroll-story.is-mobile .agood-scroll-story__step .agood-scroll-story__media-item {
	position: relative;
	inset: auto;
	z-index: auto;
	width: 100%;
	height: auto;
	margin: 0 0 clamp(1.25rem, 5vw, 2rem);
	aspect-ratio: var(--agood-scroll-story-mobile-aspect-ratio, 4 / 3);
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* Reasonable pre-initialisation fallback for the default Elementor breakpoint. */
@media (max-width: 767px) {
	.agood-scroll-story:not(.is-desktop) .agood-scroll-story__layout {
		display: block;
	}

	.agood-scroll-story:not(.is-desktop) .agood-scroll-story__media {
		position: relative;
		top: auto;
		height: min(72vh, 36rem);
		height: min(72svh, 36rem);
		min-height: 20rem;
		margin-bottom: 2rem;
	}

	.agood-scroll-story:not(.is-desktop) .agood-scroll-story__step {
		min-height: 0;
		opacity: 1;
	}

	.agood-scroll-story:not(.is-desktop) .agood-scroll-story__step + .agood-scroll-story__step {
		margin-top: 3rem;
	}
}

/* A custom breakpoint below 767px may explicitly keep the desktop layout. */
.agood-scroll-story.is-desktop .agood-scroll-story__layout {
	display: grid;
}

.agood-scroll-story.is-desktop .agood-scroll-story__media {
	display: block;
	position: sticky;
	top: var(--agood-scroll-story-sticky-offset);
	height: var(--agood-scroll-story-media-height);
}

.agood-scroll-story.is-desktop .agood-scroll-story__step {
	display: flex;
	min-height: var(--agood-scroll-story-step-height);
}

/*
 * Full Background mode
 *
 * The sticky frame overlaps the normal-flow trigger track by one frame height.
 * Consequently, the transparent triggers define the section's scroll length
 * without the sticky layout adding an extra viewport to that length.
 */
.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop {
	isolation: isolate;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__layout {
	position: sticky;
	top: var(--agood-scroll-story-sticky-offset, 0);
	z-index: 1;
	display: block;
	width: 100%;
	height: var(--agood-scroll-story-background-frame-height);
	min-height: 0;
	margin-bottom: 0;
	overflow: hidden;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__layout::after {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(
			to top,
			var(--agood-scroll-story-overlay) 0%,
			var(--agood-scroll-story-overlay) 34%,
			transparent 82%
		),
		linear-gradient(
			to right,
			var(--agood-scroll-story-overlay) 0%,
			var(--agood-scroll-story-overlay) 34%,
			transparent 76%
		);
	pointer-events: none;
	content: '';
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__media-item {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__media-item img,
.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__media-item picture,
.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__media-item video {
	width: 100%;
	height: 100%;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__media-item img,
.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__media-item video {
	object-fit: cover;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__steps {
	position: absolute;
	inset: 0;
	z-index: 3;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step {
	position: absolute;
	inset: 0;
	display: flex;
	min-height: 0;
	padding:
		clamp(7rem, 11vw, 9rem)
		max(
			var(--agood-scroll-story-content-side-padding),
			calc((100% - var(--agood-scroll-story-content-container-width)) / 2)
		)
		clamp(5rem, 9vw, 7rem);
	border: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	color: var(--agood-scroll-story-background-text);
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity var(--agood-scroll-story-transition-duration) var(--agood-scroll-story-transition-easing);
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step > * {
	width: min(var(--agood-scroll-story-content-max-width), 82vw);
	max-width: 100%;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step-label {
	display: none;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step-heading,
.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step-description,
.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step-description * {
	color: inherit;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step.is-active {
	color: var(--agood-scroll-story-background-text);
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0s;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step:focus-within {
	opacity: 1;
	pointer-events: auto;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress {
	position: absolute;
	top: clamp(7rem, 11vw, 9rem);
	inset-inline-start: max(
		var(--agood-scroll-story-content-side-padding),
		calc((100% - var(--agood-scroll-story-content-container-width)) / 2)
	);
	z-index: 4;
	display: flex;
	max-width: min(26rem, 76vw);
	margin: 0;
	padding: 0;
	flex-direction: column;
	gap: 0.55rem;
	color: var(--agood-scroll-story-background-text);
	list-style: none;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress::before {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	width: 2px;
	background: rgba(255, 255, 255, 0.42);
	content: '';
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress-item {
	position: relative;
	z-index: 1;
	margin: 0;
	padding-inline-start: 0.8rem;
	border-inline-start: 2px solid rgba(255, 255, 255, 0.42);
	color: inherit;
	list-style: none;
	opacity: 0.8;
	transition:
		border-color var(--agood-scroll-story-transition-duration) ease,
		opacity var(--agood-scroll-story-transition-duration) ease;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress-item.is-active {
	border-inline-start-color: var(--agood-scroll-story-accent);
	opacity: 1;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress-item.is-active::before {
	position: absolute;
	top: 0.45em;
	inset-inline-start: -5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--agood-scroll-story-accent);
	box-shadow: 0 0 0 1px #fff;
	content: '';
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__triggers {
	position: relative;
	z-index: 0;
	display: block;
	margin: calc(0px - var(--agood-scroll-story-background-frame-height)) 0 0;
	padding: 0;
	pointer-events: none;
}

.agood-scroll-story[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__trigger {
	display: block;
	height: var(--agood-scroll-story-background-trigger-height);
	min-height: 1px;
	pointer-events: none;
}

/*
 * When an introduction is enabled, it leads at the top of the shared
 * full-cover frame. The progress rail sits close to the lower active-step
 * content, with a flexible clear area between both content sets.
 */
.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__layout,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__layout {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) var(--agood-scroll-story-bottom-content-height);
	grid-template-columns: minmax(0, 1fr);
	column-gap: 0;
	align-items: stretch;
}

.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__intro {
	position: relative;
	z-index: 4;
	grid-row: 1;
	grid-column: 1;
	background-color: transparent;
	pointer-events: none;
}

.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro-inner,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__intro-inner {
	padding-block: clamp(2rem, 5vh, 4rem) clamp(0.75rem, 2vh, 1.5rem);
}

@media (min-height: 561px) and (max-height: 700px) {
	.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro-inner {
		padding-top: 1.25rem;
	}
}

.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro-content,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__intro-content {
	width: min(var(--agood-scroll-story-content-max-width), 82vw);
	max-width: 100%;
}

/* Plugin-owned safe area. Header.js publishes measured fixed-header bounds.
 * Only pinned full-cover introductions participate; mobile/stacked and split
 * layouts retain their own spacing. Existing user padding remains a minimum. */
html.agood-has-fixed-header .agood-scroll-story.has-intro[data-layout-mode='background'][data-intro-header-clearance='auto'].is-enhanced.is-desktop .agood-scroll-story__intro-inner {
	padding-top: max(var(--agood-story-intro-padding, clamp(2rem, 5vh, 4rem)), calc(max(0px, var(--agood-fixed-header-bottom, 0px) - var(--agood-scroll-story-sticky-offset, 0px)) + var(--agood-story-header-gap, 24px)));
}
.agood-scroll-story.has-intro[data-layout-mode='background'][data-intro-header-clearance='custom'].is-enhanced.is-desktop .agood-scroll-story__intro-inner {
	padding-top: max(var(--agood-story-intro-padding, clamp(2rem, 5vh, 4rem)), var(--agood-story-custom-top-space, 112px));
}

.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro-heading,
.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro-description,
.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro-description *,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__intro-heading,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__intro-description,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__intro-description * {
	color: var(--agood-scroll-story-background-text);
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro-button,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__intro-button {
	pointer-events: auto;
}

.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__progress {
	position: relative;
	top: auto;
	inset-inline-start: auto;
	z-index: 4;
	grid-row: 2;
	grid-column: 1;
	align-self: end;
	margin:
		0
		max(
			var(--agood-scroll-story-content-side-padding),
			calc((100% - var(--agood-scroll-story-content-container-width)) / 2)
		)
		clamp(0.75rem, 2vh, 1.5rem);
}

.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__steps,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__steps {
	position: relative;
	inset: auto;
	z-index: 3;
	grid-row: 3;
	grid-column: 1;
	min-height: 0;
}

.agood-scroll-story.has-intro[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step,
.agood-scroll-story.has-intro.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step {
	padding:
		clamp(0.75rem, 2vh, 1.5rem)
		max(
			var(--agood-scroll-story-content-side-padding),
			calc((100% - var(--agood-scroll-story-content-container-width)) / 2)
		)
		clamp(2.5rem, 6vh, 5rem);
}

/*
 * Elementor editor preview
 *
 * The live editor needs a representative frame, not the multi-viewport trigger
 * track used by the public page. PHP adds .is-editor-preview only while the
 * editor canvas is rendering. Mobile preview retains the normal stacked flow.
 */
.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) {
	isolation: isolate;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__layout {
	position: relative;
	top: auto;
	z-index: 1;
	display: block;
	width: 100%;
	height: min(82vh, 52rem);
	min-height: 36rem;
	margin-bottom: 0;
	overflow: hidden;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__layout::after {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(
			to top,
			var(--agood-scroll-story-overlay) 0%,
			var(--agood-scroll-story-overlay) 34%,
			transparent 82%
		),
		linear-gradient(
			to right,
			var(--agood-scroll-story-overlay) 0%,
			var(--agood-scroll-story-overlay) 34%,
			transparent 76%
		);
	pointer-events: none;
	content: '';
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__media {
	position: absolute;
	top: auto;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__media-item {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__media-item img,
.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__media-item picture,
.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__media-item video {
	width: 100%;
	height: 100%;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__media-item img,
.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__media-item video {
	object-fit: cover;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__steps {
	position: absolute;
	inset: 0;
	z-index: 3;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step {
	position: absolute;
	inset: 0;
	display: flex;
	min-height: 0;
	padding:
		clamp(7rem, 11vw, 9rem)
		max(
			var(--agood-scroll-story-content-side-padding),
			calc((100% - var(--agood-scroll-story-content-container-width)) / 2)
		)
		clamp(5rem, 9vw, 7rem);
	border: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	color: var(--agood-scroll-story-background-text);
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
	opacity: 0;
	pointer-events: none;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step > * {
	width: min(var(--agood-scroll-story-content-max-width), 82vw);
	max-width: 100%;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step-label {
	display: none;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step-heading,
.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step-description,
.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step-description * {
	color: inherit;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step.is-active,
.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__step:focus-within {
	color: var(--agood-scroll-story-background-text);
	opacity: 1;
	pointer-events: auto;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__progress {
	position: absolute;
	top: clamp(7rem, 11vw, 9rem);
	inset-inline-start: max(
		var(--agood-scroll-story-content-side-padding),
		calc((100% - var(--agood-scroll-story-content-container-width)) / 2)
	);
	z-index: 4;
	display: flex;
	max-width: min(26rem, 76vw);
	margin: 0;
	padding: 0;
	flex-direction: column;
	gap: 0.55rem;
	color: var(--agood-scroll-story-background-text);
	list-style: none;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__progress::before {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	width: 2px;
	background: rgba(255, 255, 255, 0.42);
	content: '';
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__progress-item {
	position: relative;
	z-index: 1;
	margin: 0;
	padding-inline-start: 0.8rem;
	border-inline-start: 2px solid rgba(255, 255, 255, 0.42);
	color: inherit;
	list-style: none;
	opacity: 0.8;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__progress-item.is-active {
	border-inline-start-color: var(--agood-scroll-story-accent);
	opacity: 1;
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__progress-item.is-active::before {
	position: absolute;
	top: 0.45em;
	inset-inline-start: -5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--agood-scroll-story-accent);
	box-shadow: 0 0 0 1px #fff;
	content: '';
}

.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__triggers,
.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-mobile) .agood-scroll-story__trigger {
	display: none;
	height: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
}

/*
 * No-JavaScript editor fallback for Elementor's default mobile breakpoint.
 * When JavaScript applies .is-desktop for a custom lower breakpoint, these
 * rules deliberately stand aside and preserve the desktop editor frame.
 */
@media (max-width: 767px) {
	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__layout {
		position: static;
		top: auto;
		display: block;
		height: auto;
		min-height: 0;
		margin-bottom: 0;
		overflow: visible;
	}

	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__layout::after {
		display: none;
		content: none;
	}

	.agood-scroll-story.is-editor-preview.has-intro[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__intro {
		position: static;
		background-color: var(--agood-scroll-story-intro-background);
		pointer-events: auto;
	}

	.agood-scroll-story.is-editor-preview.has-intro[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__intro-inner {
		padding-block: clamp(4rem, 7vw, 6rem);
	}

	.agood-scroll-story.is-editor-preview.has-intro[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__intro-heading {
		color: var(--agood-scroll-story-intro-heading);
		text-shadow: none;
	}

	.agood-scroll-story.is-editor-preview.has-intro[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__intro-description,
	.agood-scroll-story.is-editor-preview.has-intro[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__intro-description * {
		color: var(--agood-scroll-story-intro-description);
		text-shadow: none;
	}

	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__media {
		position: relative;
		inset: auto;
		display: block;
		height: min(72vh, 36rem);
		height: min(72svh, 36rem);
		min-height: 20rem;
		margin-bottom: 2rem;
	}

	.agood-scroll-story.is-editor-preview.is-mobile[data-layout-mode='background'] .agood-scroll-story__media {
		display: none;
		height: 0;
		min-height: 0;
		margin: 0;
	}

	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__steps {
		position: static;
		inset: auto;
		pointer-events: auto;
	}

	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__step {
		position: static;
		inset: auto;
		display: block;
		min-height: 0;
		padding: 0;
		border-inline-start-color: transparent;
		color: inherit;
		text-shadow: none;
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
	}

	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__step + .agood-scroll-story__step {
		margin-top: 3rem;
	}

	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__step > * {
		width: 100%;
		max-width: 100%;
	}

	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__step-label {
		display: inline;
	}

	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__progress,
	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__triggers,
	.agood-scroll-story.is-editor-preview[data-layout-mode='background']:not(.is-desktop) .agood-scroll-story__trigger {
		display: none;
		height: 0;
		min-height: 0;
	}
}

/* Keep an image-less editor story readable and easy to recover. */
.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__layout {
	position: static;
	top: auto;
	display: block;
	height: auto;
	min-height: 0;
	margin-bottom: 0;
	overflow: visible;
}

.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__layout::after {
	display: none;
	content: none;
}

.agood-scroll-story.is-editor-preview.has-no-media.has-intro[data-layout-mode='background'] .agood-scroll-story__intro {
	position: static;
	background-color: var(--agood-scroll-story-intro-background);
	pointer-events: auto;
}

.agood-scroll-story.is-editor-preview.has-no-media.has-intro[data-layout-mode='background'] .agood-scroll-story__intro-inner {
	padding-block: clamp(4rem, 7vw, 6rem);
}

.agood-scroll-story.is-editor-preview.has-no-media.has-intro[data-layout-mode='background'] .agood-scroll-story__intro-heading {
	color: var(--agood-scroll-story-intro-heading);
	text-shadow: none;
}

.agood-scroll-story.is-editor-preview.has-no-media.has-intro[data-layout-mode='background'] .agood-scroll-story__intro-description,
.agood-scroll-story.is-editor-preview.has-no-media.has-intro[data-layout-mode='background'] .agood-scroll-story__intro-description * {
	color: var(--agood-scroll-story-intro-description);
	text-shadow: none;
}

.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__media,
.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__progress,
.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__triggers,
.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__trigger {
	display: none;
}

.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__steps {
	position: static;
	inset: auto;
	pointer-events: auto;
}

.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__step {
	position: static;
	inset: auto;
	display: block;
	min-height: 0;
	padding: 0;
	border-inline-start-color: transparent;
	color: inherit;
	text-shadow: none;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__step.is-active {
	color: inherit;
}

.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__step + .agood-scroll-story__step {
	margin-top: clamp(2.5rem, 8vw, 5rem);
}

.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__step > * {
	width: 100%;
	max-width: 100%;
}

.agood-scroll-story.is-editor-preview.has-no-media[data-layout-mode='background'] .agood-scroll-story__step-label {
	display: inline;
}

/* An optional phone-only treatment keeps the story cinematic without changing
 * the authored content or the tablet/desktop layouts. */
@media (max-width: 767px) {
	.agood-scroll-story__media-item img,
	.agood-scroll-story__media-item video {
		object-position: var(--agood-scroll-story-mobile-image-x, 50%) center;
	}

	/* Keep this less specific than Elementor's responsive typography selector. */
	.agood-scroll-story__progress-item {
		font-size: clamp(0.9375rem, 4.25vw, 1.125rem);
	}

	.agood-scroll-story[data-hide-intro-mobile='yes'] .agood-scroll-story__intro {
		display: none;
	}

	.agood-scroll-story.has-intro[data-layout-mode='background'][data-mobile-immersive='yes'][data-hide-intro-mobile='yes'].is-desktop .agood-scroll-story__layout {
		display: block;
	}

	.agood-scroll-story.has-intro[data-layout-mode='background'][data-mobile-immersive='yes'][data-hide-intro-mobile='yes'].is-desktop .agood-scroll-story__progress {
		position: absolute;
		top: clamp(2rem, 4.5vh, 2.75rem);
		inset-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
		z-index: 4;
		width: auto;
		max-width: none;
		margin: 0;
		grid-row: auto;
		align-self: auto;
	}

	/* On phones, expand the active chapter in one horizontal step strip. */
	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress::before {
		display: none;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress {
		width: auto;
		max-width: none;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: clamp(0.4rem, 2vw, 0.75rem);
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-item {
		min-width: 0;
		padding-inline-start: 0;
		border-inline-start: 0;
		flex: 0 1 auto;
		font-weight: 400;
		line-height: 1.3;
		white-space: nowrap;
		opacity: 0.7;
		transition:
			flex-grow var(--agood-scroll-story-transition-duration) var(--agood-scroll-story-transition-easing),
			opacity var(--agood-scroll-story-transition-duration) ease;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-item.is-active {
		padding-inline-start: 0.7rem;
		border-inline-start: 0;
		flex: 1 1 auto;
		font-weight: 650;
		opacity: 1;
		overflow: hidden;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-separator,
	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-title {
		display: none;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-control {
		display: flex;
		min-width: 32px;
		min-height: 44px;
		align-items: center;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		pointer-events: auto;
		cursor: pointer;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-item.is-active .agood-scroll-story__progress-control {
		width: 100%;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-control:focus-visible {
		outline: 2px solid currentColor;
		outline-offset: 2px;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-title-mobile {
		display: inline-block;
		max-width: 0;
		vertical-align: bottom;
		opacity: 0;
		overflow: hidden;
		transition:
			max-width var(--agood-scroll-story-transition-duration) var(--agood-scroll-story-transition-easing),
			opacity var(--agood-scroll-story-transition-duration) ease;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-item.is-active .agood-scroll-story__progress-title-mobile {
		max-width: 18rem;
		opacity: 1;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-item.is-active .agood-scroll-story__progress-number {
		margin-inline-end: 0.2rem;
	}

	.agood-scroll-story[data-layout-mode='background'][data-mobile-immersive='yes'].is-enhanced.is-desktop .agood-scroll-story__progress-item.is-active::before {
		top: 50%;
		inset-inline-start: 0;
		width: 2px;
		height: 1.15em;
		border-radius: 0;
		background: currentColor;
		box-shadow: none;
		transform: translateY(-50%);
	}

	.agood-scroll-story.has-intro[data-layout-mode='background'][data-mobile-immersive='yes'][data-hide-intro-mobile='yes'].is-desktop .agood-scroll-story__steps {
		position: absolute;
		inset: 0;
		grid-row: auto;
	}

	.agood-scroll-story.has-intro[data-layout-mode='background'][data-mobile-immersive='yes'][data-hide-intro-mobile='yes'].is-desktop .agood-scroll-story__step {
		position: absolute;
		inset: 0;
		min-height: 0;
		padding: 5rem max(20px, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
		justify-content: flex-end;
	}

	.agood-scroll-story.has-intro[data-layout-mode='background'][data-mobile-immersive='yes'][data-hide-intro-mobile='yes'].is-desktop .agood-scroll-story__step > * {
		width: min(var(--agood-scroll-story-content-max-width), 100%);
	}
}

/* Short, wide screens keep the photographic overlay instead of switching to
 * image-and-copy blocks. Reserve the header once at frame level, then give
 * intro and active copy separate bounded rows. Long authored copy remains
 * reachable by scrolling inside its own region rather than being clipped.
 * Phone styling and explicit stacked/reduced-motion modes do not participate. */
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__layout {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
	--agood-compact-reserve: 0px;
	padding-top: var(--agood-compact-reserve);
}
.agood-scroll-story.is-compact[data-intro-header-clearance='auto'].is-enhanced.is-desktop .agood-scroll-story__layout {
	--agood-compact-reserve: max(16px, calc(var(--agood-fixed-header-bottom, 0px) - var(--agood-scroll-story-sticky-offset, 0px) + var(--agood-story-header-gap, 24px)));
}
.agood-scroll-story.is-compact[data-intro-header-clearance='custom'].is-enhanced.is-desktop .agood-scroll-story__layout {
	--agood-compact-reserve: max(16px, var(--agood-story-custom-top-space, 112px));
}
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro {
	min-height: 0;
	overflow-y: auto;
	pointer-events: auto;
}
html .agood-scroll-story.is-compact.has-intro[data-layout-mode='background'][data-intro-header-clearance]:not([data-intro-header-clearance='off']).is-enhanced.is-desktop .agood-scroll-story__intro-inner {
	padding-block: max(0px, calc(var(--agood-story-intro-padding, 0px) - var(--agood-compact-reserve))) 12px;
}
:where(.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop) .agood-scroll-story__intro-heading {
	font-size: clamp(24px, 2.5vw, 32px);
	line-height: 1.15;
}
:where(.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop) .agood-scroll-story__intro-description {
	font-size: 16px;
	line-height: 1.45;
	margin-top: 8px;
}
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__intro-button {
	margin-top: 12px;
	padding: 10px 20px;
}
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress {
	position: relative;
	top: auto;
	inset-inline-start: auto;
	grid-row: 2;
	grid-column: 1;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	max-width: none;
	min-width: 0;
	overflow-x: auto;
	margin: 8px max(var(--agood-scroll-story-content-side-padding), calc((100% - var(--agood-scroll-story-content-container-width)) / 2));
}
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress::before,
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress-item:not(.is-active) .agood-scroll-story__progress-title,
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress-item:not(.is-active) .agood-scroll-story__progress-separator {
	display: none;
}
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__progress-item {
	flex: 0 0 auto;
}
:where(.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop) .agood-scroll-story__progress-item {
	font-size: 16px;
	line-height: 1.5;
}
.agood-scroll-story.is-compact .agood-scroll-story__progress-control {
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: inherit;
}
.agood-scroll-story.is-compact .agood-scroll-story__progress-control:focus-visible,
.agood-scroll-story.is-compact .agood-scroll-story__intro:focus-visible,
.agood-scroll-story.is-compact .agood-scroll-story__step-inner:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__steps {
	position: relative;
	inset: auto;
	grid-row: 3;
	grid-column: 1;
	min-height: 0;
}
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step {
	padding-block: 12px 24px;
	justify-content: flex-end;
}
.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop .agood-scroll-story__step-inner {
	max-height: 100%;
	min-height: 0;
	overflow-y: auto;
}
:where(.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop) .agood-scroll-story__step-heading {
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.15;
}
:where(.agood-scroll-story.is-compact[data-layout-mode='background'].is-enhanced.is-desktop) .agood-scroll-story__step-description {
	font-size: 16px;
	line-height: 1.5;
}

.agood-scroll-story.is-reduced-motion .agood-scroll-story__media-item,
.agood-scroll-story.is-reduced-motion .agood-scroll-story__step,
.agood-scroll-story.is-reduced-motion .agood-scroll-story__progress-item {
	transition-duration: 0.01ms;
	transition-delay: 0ms;
}

.agood-scroll-story.is-reduced-motion .agood-scroll-story__media-item {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.agood-scroll-story__media-item,
	.agood-scroll-story__step,
	.agood-scroll-story__progress-item {
		transition-duration: 0.01ms;
		transition-delay: 0ms;
	}

	.agood-scroll-story__media-item {
		transform: none;
	}
}

