.text-section {
	--section-bg: var(--brandwhite);
	position: relative;
	overflow: hidden;
	background-color: var(--section-bg);
}

.text-section--gray {
	--section-bg: var(--gray-1, #f1f3f5);
}

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

.text-section--has-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--section-bg);
	opacity: 0.9;
	pointer-events: none;
}

.text-section__inner {
	position: relative;
	z-index: 2;
}

.text-section__inner > :first-child { margin-top: 0; }
.text-section__inner > :last-child { margin-bottom: 0; }

.text-section h1,
.text-section h2,
.text-section h3 {
	color: var(--secondary);
}

.text-section a {
	color: var(--secondary);
	font-weight: 700;
	text-decoration: underline;
}
.text-section a:hover {
	text-decoration-thickness: 2px;
}

.text-section--none {
	--section-bg: transparent;
}
