.gp-conveyor-scene {
	--gp-conveyor-scene-sticky-top: 0px;
	--gp-conveyor-content-gutter: var(--celestia-content-gutter-desktop, 64px);
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-width: 0;
	overflow-x: clip;
	isolation: isolate;
}

.gp-conveyor-scene *,
.gp-conveyor-scene *::before,
.gp-conveyor-scene *::after {
	box-sizing: border-box;
}

.gp-conveyor-scene--full {
	/* Use the layout viewport width, not 100vw: desktop scrollbars are excluded. */
	width: var(--gp-conveyor-viewport-width, 100%);
	max-width: var(--gp-conveyor-viewport-width, 100%);
	margin-left: calc(50% - var(--gp-conveyor-half-viewport-width, 50%));
	margin-right: calc(50% - var(--gp-conveyor-half-viewport-width, 50%));
}

.gp-conveyor-scene--contained {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
}

.gp-conveyor-scene__stage {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: calc(var(--gp-conveyor-scene-height, 100svh) - var(--gp-conveyor-scene-sticky-top, 0px));
	overflow-x: clip;
	background: inherit;
}

.gp-conveyor-scene.is-pinned .gp-conveyor-scene__stage {
	position: sticky;
	top: var(--gp-conveyor-scene-sticky-top, 0px);
	z-index: 1;
}

.gp-conveyor-scene__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: inherit;
	overflow: clip;
}

.gp-conveyor-scene__intro {
	position: relative;
	z-index: 10;
	flex: 0 0 auto;
	width: 100%;
	margin-block: 0 !important;
	padding-block: clamp(2.25rem, 5.5svh, 4.75rem) clamp(1.25rem, 2.8svh, 2.25rem);
	padding-inline: var(--gp-conveyor-content-gutter);
}

.gp-conveyor-scene__intro > *:first-child {
	margin-block-start: 0;
}

.gp-conveyor-scene__intro > *:last-child {
	margin-block-end: 0;
}

.gp-conveyor-scene > .gp-conveyor-scene__stage > .gp-conveyor-scene__inner > .wp-block-celestia-conveyor-track {
	flex: 1 1 auto;
	margin-top: auto;
}

@media (max-width: 781px) {
	.gp-conveyor-scene {
		--gp-conveyor-content-gutter: var(--celestia-content-gutter-mobile, 24px);
	}

	.gp-conveyor-scene:not(.is-pinned) {
		height: auto !important;
	}

	.gp-conveyor-scene__stage {
		position: relative;
		top: auto;
		min-height: 0;
	}

	.gp-conveyor-scene.is-pinned .gp-conveyor-scene__stage {
		position: sticky;
		top: var(--gp-conveyor-scene-sticky-top, 0px);
		min-height: calc(var(--gp-conveyor-scene-height, 100svh) - var(--gp-conveyor-scene-sticky-top, 0px));
	}

	.gp-conveyor-scene__inner {
		min-height: 0;
		overflow-x: clip;
		overflow-y: visible;
	}

	.gp-conveyor-scene.is-pinned .gp-conveyor-scene__inner {
		min-height: inherit;
		overflow: clip;
	}

	.gp-conveyor-scene__intro {
		padding-top: clamp(2.5rem, 10vw, 4.5rem);
		padding-bottom: 1.5rem;
	}
}
