/* ==========================================================================
   GNN Quote Slider
   ========================================================================== */

.gnn-quote-slider {
	position: relative;
	width: 100%;
	height: min(285px, 39.6vw);
	overflow: hidden;
	background: #111;
}

/* Track & slides --------------------------------------------------------- */

.gnn-quote-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.gnn-quote-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	z-index: 1;
}

.gnn-quote-slider__slide--active {
	opacity: 1;
	z-index: 2;
}

.gnn-quote-slider__link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: #fff;
}

/* Background image — extra height gives the parallax room to move -------- */

.gnn-quote-slider__image {
	position: absolute;
	left: 0;
	top: -40px;
	width: 100%;
	height: calc(100% + 80px);
	object-fit: cover;
	will-change: transform;
	pointer-events: none;
}

/* Text content ----------------------------------------------------------- */

.gnn-quote-slider__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 3;
	padding: 20px 70px;
	opacity: 0;
	transition: opacity 1.5s ease 0.3s;
}

.gnn-quote-slider--ready .gnn-quote-slider__slide--active .gnn-quote-slider__content {
	opacity: 1;
}

.gnn-quote-slider__title {
	font-family: 'Ubuntu Condensed', sans-serif;
	font-size: 36px;
	line-height: 46px;
	font-weight: 400;
	color: #fff;
	text-align: center;
	text-shadow: 0 0 8px #222;
	max-width: 718px;
	margin: 0;
}

.gnn-quote-slider__date {
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	line-height: 15px;
	font-weight: 400;
	color: #fff;
	text-align: center;
	text-shadow: 0 0 5px #222;
	position: absolute;
	bottom: 20px;
	margin: 0;
}

/* Navigation arrows ------------------------------------------------------ */

.gnn-quote-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.gnn-quote-slider__arrow:hover,
.gnn-quote-slider__arrow:focus-visible {
	opacity: 1;
}

.gnn-quote-slider__arrow--prev {
	left: 20px;
}

.gnn-quote-slider__arrow--next {
	right: 20px;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 767px) {
	.gnn-quote-slider__title {
		font-size: 22px;
		line-height: 30px;
	}

	.gnn-quote-slider__content {
		padding: 15px 50px;
	}

	.gnn-quote-slider__arrow--prev {
		left: 10px;
	}

	.gnn-quote-slider__arrow--next {
		right: 10px;
	}
}

/* Cap background image on ultrawide screens ------------------------------ */

@media (min-width: 1800px) {
	.gnn-quote-slider__image {
		max-width: 1800px;
		left: 0;
		right: 0;
		margin-inline: auto;
	}
}
