/* Fade the header's bottom gradient into whichever block follows it */
.page-header-block {
	padding-top: var(--navbar-height);
	position: relative;

	&:not(.none) {
		height: 100svh;
		min-height: 600px;
	}
	
	&.none {
		padding-bottom: var(--padding-y);
		padding-top: calc(var(--navbar-height) + var(--padding-y));
		.container {
			> * {
				max-width: 650px !important;
			}
			p {
				font-size: 16px;
				margin-top: 30px;
			}
		}
	}

	&::before {
		content: '';
		background-color: var(--wp--preset--color--black);
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%);
		height: 100%;
		left: 0;
		position: absolute;
		top: 0;
		width: 100%;
		z-index: 1;
	}
	> div:not(.image-slider):not(> .background):not(.down-arrow-container) {
		position: relative;
		z-index: 2;
	}

	&.none {
		&::before {
			display: none;
		}
	}

}

/* Background styles */
/* -- Styling for images and video backgrouns  */
.page-header-block .background {
	height: 100svh;
	left: 0;
	min-height: 800px;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 0;
	background: linear-gradient(90deg, #2EB4B0 0%, #215A57 100%);

	/* &::before {
		content: '';
		background: linear-gradient(90deg, rgba(0, 39, 80, 0.7) 0%, rgba(0, 89, 182, 0) 100%);
		height: 100%;
		left: 0;
		opacity: 1;
		position: absolute;
		top: 0;
		transition: .25s ease-in-out;
		width: 70vw;
		z-index: 1;
	} */

	& img {
		height: 100svh;
		min-height: 800px;
		object-fit: cover;
		object-position: center;
		width: 100vw;
	}

	iframe,
	video {
		aspect-ratio: 16 / 9;
		height: auto;
		left: 50%;
		min-height: 100%;
		min-width: 100%;
		object-fit: cover;
		pointer-events: none;	
		position: absolute;
		top: 50%;
		transform: translate(-50%, -50%);
		width: auto;		
	}	
}

.page-header-block .image-slider {
	height: 100% !important;
	left: 0;
	max-width: 100dvw;
	overflow: hidden;
	position: absolute;
	top: 0;
	width: 100%;

	> div {
		height: 100% !important;
	}

	.slick-dots {
		bottom: 25px;
		z-index: 3;

		li button {
			&:hover::before {
				color: var(--wp--preset--color--green);
			}
			&::before {
				font-size: 12px;
				color: var(--wp--preset--color--white);
			}
		}
		li.slick-active button::before {
			color: var(--wp--preset--color--green);
		}		
	}

}
.page-header-block .image-slider .image-slide {
	height: 100% !important;
	position: relative;
}

.page-header-block .mejs-mediaelement {
	height: 100%;
}

.page-header-block .mejs-container {
	max-width: none;
}

.page-header-block .mejs-controls {
	display: none !important;
}


body:not(.home) {

	.page-header-block .container {
		> * {
			max-width: 650px !important;
		}
		p {
			font-size: 16px;
		}
	}

}

body.home {

	.page-header-block .container {
		> * {
			opacity: 0;
		}
	}

}

.page-header-block .container {

	display: grid;
	grid-template-columns: 1fr;
	place-content: center left;
	height: 100%;
	position: relative;
	z-index: 1;

	> * {
		max-width: 70%;
		@media (max-width: 992px) {
			max-width: 90%;			
		}
	}

	> *:last-child {
		margin-bottom: 0 !important;
	}

	h1 {
		color: var(--wp--preset--color--white) !important;
		margin-bottom: 0;
		margin-top: 0;
	}
	p {
		color: var(--wp--preset--color--white) !important;
		font-weight: 400;
		font-size: 20px;
		margin-top: 60px;
		margin-bottom: 0;
	}

	.wp-block-buttons {
		margin-top: 40px;
	}

}

.page-header-block .meta {
	display: flex;
	font-family: var(--wp--preset--font-family--roboto-condensed-bold) !important;
	font-size: 20px;
	font-weight: 400;
	gap: 20px;
	margin-bottom: 20px;
	opacity: 0;
	transition: 1s ease-in-out;
}

.page-header-block .meta .date {
	color: var(--wp--preset--color--white);
}

.page-header-block .down-arrow-container {
	align-items: center;
	bottom: 25px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	text-align: center;
	width: 120px;
	z-index: 2;

	display: none;

	& span {
		color: var(--wp--preset--color--white);
		font-family: var(--wp--preset--font-family--roboto);
		font-size: 14px;
		font-weight: 400;
		margin-bottom: 7px;
	}

	& .down-arrow {
		transition: .25s ease-in-out;
		animation: bounce 1400ms infinite;
		background-color: var(--wp--preset--color--white);
		clip-path: polygon(0 0, 50% 100%, 100% 0);
		height: 17px;
		width: 34px;
	}

}



/* RESPONSIVE */

/* -- MAX HEIGHT -- */
/* @media (max-height: 900px) {

	.page-header-block .background .wp-video video,
	.page-header-block .background .wp-video iframe {
		aspect-ratio: 16 / 9;
		position: absolute;
		height: 100svh !important;
		width: auto !important;
	}

} */


/* -- MIN WIDTH -- */
/* @media (min-width: 1620px) {

	.page-header-block .background .wp-video video,
	.page-header-block .background .wp-video iframe {
		aspect-ratio: 16 / 9;
		height: auto !important;
		position: absolute;
		top: 20%;
		transform: translateY(-35%);
	}

} */


/* -- MAX WIDTH -- */
@media (max-width: 1188px) {

	.page-header-block .container > * {
		max-width: 80%;
	}

}

@media (max-width: 662px) {

	.page-header-block .container > * {
		max-width: 100%;
	}

	.page-header-block .container {
		h1 span.script {
			font-size: 100px;
			left: 15px;
			max-height: 100px;
			top: -30px;
		}
	}

	.page-header-block .background {
		max-height: 100svh;
	}
	.page-header-block .background img {
		max-height: none;
	}

	/* .page-header-block .background .wp-video {
		max-height: 100%;
		left: 50%;
		transform: translateX(-50%);
	}
	.page-header-block .mejs-mediaelement {
		max-height: 100%;
	}
	.page-header-block .background .wp-video video {
		max-height: 100svh;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		top: 0;
		width: auto !important;
	} */

	.single .page-header-block .container > * {
		max-width: 100%;
	}

}

