/*
 * Paginahero: kruimelpad, titel en beschrijving.
 * Alleen geladen als het blok paginahero op de pagina staat.
 * Kleuren komen uit de variabelen in base.css.
 */

.cp-page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--cp-color-navy);
	color: #fff;
}

.cp-page-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.cp-page-hero__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.25;
	pointer-events: none;
}

.cp-page-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to right, #011c38, rgb(1 28 56 / 0.4));
	pointer-events: none;
}

.cp-page-hero__inner {
	position: relative;
	z-index: 2;
	width: min(100%, 80rem);
	margin-inline: auto;
	padding: 4rem 1rem;
	container-type: inline-size;
}

.cp-page-hero__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-width: 0;
	gap: 0.75rem;
}

.cp-page-hero .cp-breadcrumb {
	max-width: 100%;
	min-width: 0;
}

.cp-page-hero .cp-breadcrumb__inner {
	width: auto;
	max-width: 100%;
	margin: 0;
}

.cp-page-hero .cp-breadcrumb__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5rem;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	color: rgb(255 255 255 / 0.7);
	font-size: 0.875rem;
	line-height: 1.4;
	list-style: none;
	white-space: nowrap;
	scrollbar-width: none;
}

.cp-page-hero .cp-breadcrumb__list::-webkit-scrollbar {
	display: none;
}

.cp-page-hero .cp-breadcrumb__item {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.5rem;
}

.cp-page-hero .cp-breadcrumb__item[aria-current="page"] {
	color: #fff;
	font-weight: 700;
}

.cp-page-hero .cp-breadcrumb__sep {
	display: inline-flex;
	color: rgb(255 255 255 / 0.7);
	font-weight: 400;
}

.cp-page-hero .cp-breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: rgb(255 255 255 / 0.7);
	font-weight: 400;
	text-decoration: none;
}

.cp-page-hero .cp-breadcrumb a:hover {
	color: #fff;
}

.cp-page-hero a:focus-visible {
	outline-color: #fff;
}

.cp-page-hero .cp-icon {
	width: 1rem;
	height: 1rem;
}

.cp-page-hero__title {
	margin: 0.25rem 0 0;
	max-width: 100%;
	color: #fff;
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.1;
	text-wrap: balance;
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

@supports (font-size: 1cqi) {
	.cp-page-hero__title {
		font-size: clamp(1.375rem, calc(100cqi / var(--cp-page-hero-chars, 12) * 1.5), 2.25rem);
	}
}

.cp-page-hero__accent {
	color: var(--cp-color-primary);
}

.cp-page-hero__text {
	display: -webkit-box;
	max-width: 42rem;
	margin: 0;
	overflow: hidden;
	color: rgb(255 255 255 / 0.75);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (min-width: 48rem) {
	.cp-page-hero__inner {
		padding-inline: 1.5rem;
	}

	.cp-page-hero__text {
		font-size: 1.125rem;
	}
}

@media (min-width: 64rem) {
	.cp-page-hero__inner {
		padding: 6rem 2rem;
	}

	.cp-page-hero__title {
		font-size: 3rem;
	}

	@supports (font-size: 1cqi) {
		.cp-page-hero__title {
			font-size: clamp(1.75rem, calc(100cqi / var(--cp-page-hero-chars, 12) * 1.5), 3rem);
		}
	}
}
