/* Albizia Apartments News Ticker */

.albizia-news-ticker {
	width: 100%;
	background: transparent;
	z-index: 2;
}

.albizia-news-ticker__inner {
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.25rem, 4vw, 2rem);
	padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.albizia-news-ticker__content {
	position: relative;
	min-height: clamp(2.25rem, 4.5vw, 3.4rem);
	display: grid;
	place-items: center;
	flex: 1;
	max-width: 640px;
}

.albizia-news-ticker__item {
	grid-area: 1 / 1;
	white-space: normal;
	color: white;
	font-size: clamp(1.45rem, 3.5vw, 2.4rem);
	font-weight: 100;
	letter-spacing: 0.03em;
	opacity: 0;
	transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	pointer-events: none;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	text-align: center;
	max-width: 100%;
}

.albizia-news-ticker__item.is-active {
	opacity: 1;
	pointer-events: auto;
}

.albizia-news-ticker__item:not(.albizia-news-ticker__item--non-clickable) {
	cursor: pointer;
	position: relative;
}

.albizia-news-ticker__item:not(.albizia-news-ticker__item--non-clickable)::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 100%;
	height: 1px;
	background: white;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.albizia-news-ticker__item:not(.albizia-news-ticker__item--non-clickable):hover::after,
.albizia-news-ticker__item:not(.albizia-news-ticker__item--non-clickable):focus::after {
	transform: scaleX(1);
}

.albizia-news-ticker__item:not(.albizia-news-ticker__item--non-clickable):hover,
.albizia-news-ticker__item:not(.albizia-news-ticker__item--non-clickable):focus {
	outline: none;
}

.albizia-news-ticker__item--non-clickable {
	cursor: default;
}

.albizia-news-ticker__nav {
	background: transparent;
	border: none;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	padding: 0;
}

.albizia-news-ticker__nav:hover,
.albizia-news-ticker__nav:focus {
	transform: scale(1.15);
	outline: none;
	opacity: 0.8;
}

.albizia-news-ticker__nav:active {
	transform: scale(0.95);
}

.albizia-news-ticker__nav span {
	display: block;
	line-height: 1;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 768px) {
	.albizia-news-ticker {
		width: 100%;
	}

	.albizia-news-ticker__inner {
		gap: clamp(0.75rem, 3vw, 1.35rem);
		padding: 0 clamp(1rem, 6vw, 2rem);
	}

	.albizia-news-ticker__item {
		font-size: clamp(1.1rem, 5vw, 1.7rem);
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.albizia-news-ticker__nav {
		font-size: 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.albizia-news-ticker__item,
	.albizia-news-ticker__nav {
		transition: none;
	}
}
