/* Hero slider and shared section heads. */

.czr-hero {
	margin-bottom: 32px;
}

.czr-hero__viewport {
	position: relative;
	overflow: hidden;
	background: var(--bg-soft);
}

.czr-hero__slide {
	display: none;
}

.czr-hero__slide:first-child {
	display: block;
}

.js .czr-hero__slide:first-child:not(.is-active) {
	display: none;
}

.js .czr-hero__slide.is-active {
	display: block;
}

.czr-hero__link {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	color: #fff;
	text-decoration: none;
}

/* Global link hover turns text dark red, which vanishes on the photo: keep the title white and underline it in amber. */
.czr-hero__link:hover,
.czr-hero__link:focus {
	color: #fff;
}

.czr-hero__link:hover .czr-hero__title,
.czr-hero__link:focus .czr-hero__title {
	text-decoration: underline;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.czr-hero__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.czr-hero__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 80px 120px 24px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0));
}

.czr-hero__label {
	display: block;
	margin-bottom: 8px;
	color: var(--amber);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.czr-hero__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.czr-hero__arrow,
.czr-hero__dots {
	display: none;
}

.js .czr-hero__arrow {
	display: none;
}

.js .czr-hero__dots {
	display: flex;
}

.czr-hero__arrow {
	position: absolute;
	top: 50%;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.czr-hero__arrow--prev {
	left: 12px;
}

.czr-hero__arrow--next {
	right: 12px;
}

.czr-hero__arrow:hover {
	background: var(--red);
}

.czr-hero__dots {
	position: absolute;
	right: 20px;
	bottom: 16px;
	gap: 8px;
}

.czr-hero__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.czr-hero__dot[aria-current="true"] {
	background: #fff;
}

@media (min-width: 768px) {
	.js .czr-hero__arrow {
		display: block;
	}

	.czr-hero__link {
		aspect-ratio: 2 / 1;
	}

	.czr-hero__title {
		font-size: 30px;
	}
}

@media (min-width: 1024px) {
	.czr-hero__caption {
		padding-right: 160px;
		padding-left: 32px;
	}

	.czr-hero__title {
		max-width: 82%;
		font-size: 36px;
	}
}
