.mc-section {
	position: relative;
	padding-block: var(--mc-section-padding, var(--mc-space-2xl));
	background-size: cover;
	background-position: center;
}

.mc-section__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--mc-container-width);
	margin-inline: auto;
	padding-inline: var(--mc-container-padding);
}

.mc-section--wide > .mc-section__inner {
	max-width: none;
}

.mc-section--full > .mc-section__inner {
	max-width: none;
	padding-inline: 0;
}

.mc-section__inner > * + * {
	margin-top: var(--mc-gutter);
}

.mc-section--full-height {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
}

.mc-section--v-top { justify-content: flex-start; }
.mc-section--v-bottom { justify-content: flex-end; }

.mc-section--has-video {
	overflow: hidden;
	isolation: isolate;
}

.mc-section__video {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.mc-section__divider {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 0;
	height: var(--mc-divider-height, 60px);
	line-height: 0;
	color: var(--mc-divider-color, var(--mc-color-background));
	pointer-events: none;
}

.mc-section__divider svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.mc-section__divider--top {
	top: -1px;
}

.mc-section__divider--bottom {
	bottom: -1px;
	transform: scaleY(-1);
}

@media (prefers-reduced-motion: reduce) {
	.mc-section__video {
		display: none;
	}
}

.mc-section,
.mc-section__inner {
	box-sizing: border-box;
	min-width: 0;
}

.mc-section__inner {
	max-width: min(100%, var(--mc-container-width));
	overflow-wrap: normal;
	word-break: normal;
}

.mc-section--wide > .mc-section__inner,
.mc-section--full > .mc-section__inner {
	max-width: 100%;
}

.mc-section__inner :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption) {
	max-width: 100%;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

@media (max-width: 1024px) {
	.mc-section > .mc-section__inner,
	.mc-section--full > .mc-section__inner {
		padding-inline: max(var(--mc-section-px, 0px), clamp(20px, 5vw, 40px));
	}

	.mc-section .mc-section > .mc-section__inner {
		padding-inline: var(--mc-section-px, 0px);
	}
}
