/*
 * Front page hero: transparent header floating over a full-screen background video.
 * Enqueued only on the front page, see functions.php -> presscore_child_enqueue_front_hero_style().
 */

body.home #page {
	position: relative;
}

body.home #branding {
    display: flex;
    text-align: left;
    img {
        max-height: 100px;
    }
} 

/* Full-screen video, first "screen" of the front page. */
body.home .front-hero-video {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 480px;
	overflow: hidden;
	background-color: #000;
}

body.home .front-hero-video video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto;
	height: auto;
	min-width: 100%;
	min-height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

/* Dark overlay above the video so the white menu text stays readable. */
body.home .front-hero-video:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

/* Header + top bar float on top of the video, transparent background. */
body.home .front-hero-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 20;
}

body.home .front-hero-header #header {
	background: transparent !important;
	border-bottom-color: transparent !important;
	-webkit-box-shadow: none !important;
	-moz-box-shadow: none !important;
	box-shadow: none !important;
}

/* White first-level menu items over the video. */
body.home .front-hero-header #main-nav > li > a {
	color: #fff;
}

@media screen and (max-width: 760px) {
	body.home .front-hero-video {
		height: 100vh;
		min-height: 360px;
	}
}
