﻿/* Responsive HTML5 Background Video
   https://github.com/BGStock/jquery-background-video
*/


/* Set initial display parameters */
/*.demo-video-wrapper {
	background-image: url(https://www.canterbury.ac.uk/SiteElements/video/homepage/clearing-2018-bgframe1.jpg);
	height: 560px;
}*/


/* Video overlay and content - not being used
.video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	pointer-events: none; 
	background: url(https://d3k5xyayaartr5.cloudfront.net/_assets/pattern-overlays/patterns/black-medium-checks.png) left top repeat;
	opacity: 0.3;
}*/

.video-hero .overlay {
	position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
}

.video-hero--content {
	position: absolute;
	bottom: 0;
	width: 100%; 
}

.video-hero--content-main {
	position: absolute;
	height: auto;
	top: 50%;
	left: 50%;
	/*width: 500px; */
	color: #fff;
	margin: auto;
	text-align: center;
		-webkit-transform: translate(-50%,-50%);
	   -moz-transform: translate(-50%,-50%);
	    -ms-transform: translate(-50%,-50%);
	     -o-transform: translate(-50%,-50%);
	    	transform: translate(-50%,-50%);

}

.video-hero--content-main h2 {
  	margin: 0 0 20px;
	font-size: 56px;
    font-family: humnst777_lt;
    text-transform: uppercase;
  	line-height: 0.9em;
}

.video-hero--content-main .btn {
	font-size: 18px;
	padding: 20px 30px;
}
.video-hero--content-main h3 {
  	margin: 0 0 5px;
	font-size: 38px;
  line-height: 1.2em;
}
.video-hero--content-main .hp-clearing-no {
	font-size: 60px;
  	font-weight: bold;
	line-height: 1em;
	margin-bottom: 30px;
}
.video-hero--content-main h4 {
  	margin:40px 0 0;
	text-transform: uppercase;
	font-family: "Humnst777_lt", arial;
}
.youcan {
	font-weight: 900;
	color: #fff;
}

.video-hero--content-main a {
	color: #fff;
}

.SlideAndSearch .course-search-form .courses-link a.over-white {
	color: #fff
}

/* Other stuff */
.cf:before,
.cf:after {
    content: " ";
    display: table;
}
.cf:after {
    clear: both;
}
.page-width {
	width: 92%;
	max-width: 960px;
	margin: 0 auto;
}
.title {
	display: block;
	font-weight: bold;
	font-size: 18px;
}
.subtitle {
	display: block;
	font-weight: normal;
	font-size: 15px;
	color: #959699;
}
a:hover .subtitle {
	color: #FFF;
}
#site-title {
	float: left;
	margin: 0;
}



/* CSS from jQuery Background Video plugin */
/**
 * Set default positioning as a fallback for if the plugin fails
 */
.jquery-background-video-wrapper {
	position: relative;
	overflow: hidden;
	background-position: center center;
	background-repeat: no-repeat;
	-webkit-background-size: cover;
	   -moz-background-size: cover;
	    	background-size: cover;
}
.jquery-background-video {
  	
	position: absolute;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	top: 50%;
	left: 50%;
	-o-object-fit: contain;
	   object-fit: contain;
	-webkit-transform: translate(-50%,-50%);
	   -moz-transform: translate(-50%,-50%);
	    -ms-transform: translate(-50%,-50%);
	     -o-transform: translate(-50%,-50%);
	    	transform: translate(-50%,-50%);
}
.jquery-background-video-wrapper video {
  	
	position: absolute;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	top: 50%;
	left: 50%;
	-o-object-fit: contain;
	   object-fit: contain;
	-webkit-transform: translate(-50%,-50%);
	   -moz-transform: translate(-50%,-50%);
	    -ms-transform: translate(-50%,-50%);
	     -o-transform: translate(-50%,-50%);
	    	transform: translate(-50%,-50%);
}
/**
 * Fade in videos
 * Note the .js class - so non js users still
 * see the video
 */
.js .jquery-background-video {
	opacity: 0;
	-webkit-transition: opacity 300ms linear;
			transition: opacity 300ms linear;
}
.js .jquery-background-video.is-visible {
	opacity: 1;
}

/**
 * Pause/play button - commented out as not being used
 
.jquery-background-video-pauseplay {
	position: absolute;
	background: transparent;
	border: none;
	box-shadow: none;
	width: 20px;
	height: 20px;
	top: 15px;
	right: 15px;
	padding: 0;
	cursor: pointer;
	outline: none !important;
}
.jquery-background-video-pauseplay span {
	display: none;
}
.jquery-background-video-pauseplay:after,
.jquery-background-video-pauseplay:before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	-webkit-transition: all .3s ease;
			transition: all .3s ease;
}
.jquery-background-video-pauseplay.play:before {
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 15px solid #FFF;
}
.jquery-background-video-pauseplay.pause:before,
.jquery-background-video-pauseplay.pause:after {
	border-top: 10px solid #FFF;
	border-bottom: 10px solid #FFF;
	border-left: 5px solid #FFF;
}
.jquery-background-video-pauseplay.pause:after {
	left: 10px;
}*/ 

/* A bit of desktop happiness */
@media (min-width: 992px) and (max-width: 1199px) {

	.demo-video-wrapper {
		height: 481px;
	}
  

}

/* Let's look at a tablet! */
@media (min-width: 768px) and (max-width: 991px) {
  
	.demo-video-wrapper {
		height: 395px;
	}  
  
}

/* Let's look on a mobile */
@media (max-width: 767px) {
  
   .demo-video-wrapper {
       /* background-image: url(http://www.canterbury.ac.uk/christmas/images/vod-mobile768x430.jpg);*/
        height: 300px;
	}
  .video-hero--content-main {
	position: absolute;
	height: auto;
	top: 0;
	left: 0;
	width: 100%; 
	color: #fff;
	margin: auto;
	text-align: center;
		-webkit-transform: translate(0,0);
	   -moz-transform: translate(0,0);
	    -ms-transform: translate(0,0);
	     -o-transform: translate(0,0);
	    	transform: translate(0,0);

	}
  
  	.video-hero--content-main h2 {
     margin-top: 30px;
    font-size: 52px;
	}
  
	.video-hero--content-main h3 {
    font-size: 18px;
	}
  .video-hero--content-main .hp-clearing-no {
	font-size: 48px;
  	font-weight: bold;
	}
  .video-hero--content-main .btn {
	font-size: 14px;
	}
  
}
