.slider-container {
	position: relative;
	width: 100%;
	max-width: 50rem;
	height: clamp(3rem, 6vw + 1.5rem, 5rem);
	overflow: visible;
	margin: 0;
	margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.slider-text {
	width: 100%;
	position: absolute;
	color: var(--accent-secondary);
	left: 150%;
	opacity: 0;
	top: 0;
	font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	padding-bottom: 0.2em;
	transition: all .5s ease-in-out, opacity 0.2s ease-in-out;
	-webkit-transition: all .5s ease-in-out, opacity 0.2s ease-in-out;
}

@media screen and (min-width: 720px) {
	.slider-text {
		width: 100%;
	}
}

.out {
	left: -150%;
	opacity: 0;
}

.in {
	left: 50%;
	transform: translateX(-50%);
	opacity: 1;
}

/* Desktop: keep slider text centered */
@media screen and (min-width: 1024px) {
	.slider-container {
		max-width: 100%;
	}
	
	.slider-text.in {
		left: 50%;
		transform: translateX(-50%);
	}
}

.notransition {
	-webkit-transition: none !important;
	transition: none !important;
}