/*
 * Additions after the Kirby 5 port, hand-written and not part of the LESS build:
 * assets/less/style.less no longer matches the shipped style.css (about 125 rules differ), so a
 * rebuild would change the rest of the site. See AGENT.md.
 * Same tokens as style.less: Open Sans, text #545454, accent #40516f; breakpoints 800/720/530px.
 */

/* ---------- Home: H1 centered on the slider ---------- */
.home-banner {
	position: relative;
}

/* soft dark glow behind the title so white text reads on light photos */
.home-banner:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: radial-gradient(ellipse 60% 40% at 50% 45%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.home-banner__title {
	position: absolute;
	top: 45%; /* the teaser bars cover the bottom of the slider */
	left: 0;
	right: 0;
	z-index: 2; /* above owl (.owl-carousel has z-index 1) and the glow, below the teasers (99) */
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	transform: translateY(-50%);
	font-family: "Open Sans", sans-serif;
	font-size: 32px; /* browsers without clamp() */
	font-size: clamp(22px, 3.3vw, 40px); /* scales so each line of the title fits */
	line-height: 1.25;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.45);
	pointer-events: none; /* slider dots and swipes stay usable */
}

@media only screen and (max-width: 530px) {
	.home-banner__title {
		top: 50%;
		padding: 0 16px;
	}
}
