/* Hero slides (parts/hero.php) */

.hero {
	position: relative;
	overflow: hidden;
}

.hero-slide {
	position: relative;
	height: 400px;
	max-height: 80vh;
	overflow: hidden;
	background-color: #243f43;
}

/* The page templates apply a Ken Burns zoom to every .slick-active element */
.hero .slick-active {
	animation: none;
}

.hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Darken the side the text is on so it stays readable on light images */
.hero-overlay:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.35);
}

.hero-content {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	/* Top padding leaves room for the fixed header */
	padding: 90px 0 60px;
}

/* The text lines up with the page's .container content below the hero */
.hero-content > .container {
	width: 100%;
	text-align: center;
}

.hero-text {
	display: inline-block;
	max-width: 640px;
	text-align: inherit;
	color: #fff;
}

.hero-title {
	margin: 0 0 15px;
	color: #fff;
	font-size: 34px;
	text-transform: uppercase;
}

.hero-subtitle {
	margin: 0 0 25px;
	font-size: 17px;
	line-height: 1.5;
}

.hero-button,
.hero-button:visited {
	display: inline-block;
	/* Uneven padding: the font reserves descender space that uppercase text doesn't use */
	padding: 14px 24px 10px;
	font-family: HurmeGeometricSans3-Bold;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #243f43;
	background-color: #fff;
	transition: background-color .2s;
}

.hero-button:hover,
.hero-button:focus {
	color: #243f43;
	text-decoration: none;
	background-color: #e7e7e2;
}

/* Dark text for light images: header blue text and button, light overlay */
.hero-dark-text.hero-overlay:after {
	background: rgba(255, 255, 255, 0.35);
}

.hero-dark-text .hero-text,
.hero-dark-text .hero-title {
	color: #334048;
}

.hero-dark-text .hero-button,
.hero-dark-text .hero-button:visited {
	color: #fff;
	background-color: #334048;
}

.hero-dark-text .hero-button:hover,
.hero-dark-text .hero-button:focus {
	color: #fff;
	background-color: #243038;
}

/* Keep the dots clear of the button */
.hero .slick-dots {
	bottom: 20px;
}

.hero .slick-dots li button:before {
	border-color: #fff;
	/* Keeps the dots visible on both light and dark images */
	box-shadow: 0 0 0 1px rgba(51, 64, 72, 0.35), inset 0 0 0 1px rgba(51, 64, 72, 0.35);
}

.hero .slick-dots li.slick-active button:before {
	background-color: #fff;
}

@media (min-width: 768px) {
	.hero-slide {
		height: 500px;
	}

	.hero-content {
		padding: 100px 0 70px;
	}

	.hero-content > .container {
		width: 760px;
	}

	.hero-title {
		font-size: 46px;
	}

	.hero-subtitle {
		font-size: 19px;
	}

	.hero-align-left .hero-content > .container {
		text-align: left;
	}

	.hero-align-right .hero-content > .container {
		text-align: right;
	}

	.hero-align-left.hero-overlay:after {
		background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 75%);
	}

	.hero-align-right.hero-overlay:after {
		background: linear-gradient(to left, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 75%);
	}

	.hero-dark-text.hero-align-left.hero-overlay:after {
		background: linear-gradient(to right, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 75%);
	}

	.hero-dark-text.hero-align-right.hero-overlay:after {
		background: linear-gradient(to left, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 75%);
	}
}

@media (min-width: 992px) {
	.hero-slide {
		height: 630px;
	}

	.hero-content {
		padding: 110px 0 80px;
	}

	.hero-content > .container {
		width: 980px;
	}

	.hero-title {
		font-size: 60px;
	}
}

@media (min-width: 1200px) {
	.hero-slide {
		height: 760px;
	}

	.hero-content > .container {
		width: 1180px;
	}
}
