.video-hero {
  background:#000000;
}
    
    .video-hero section.videos__card.card.span12 {
    background-position: center;
    background-size: cover;
}

.overlay-text {
    width: 100%;
    top: 50%;
     position: absolute;
    z-index: 1;
}

section.videos__card.card.span12 {
    position: relative;
}

.video-hero .videos__card {
  margin-bottom:0;
}

.video-hero .trigger-video-modal-hero {
cursor:pointer;
z-index:10;
}    
/* Video Modal */

.video-hero svg.button-overlay {
    position: absolute;
    top:50%;
    left:50%;
    z-index:500;
    transform:translate(-50%,-50%);
  pointer-events:all;
  
}

.video__image {
    position: relative;
  
}

.video-setter {
    width: 100%;
    opacity: 1;
    pointer-events: none;
    display: block;
    
}

.height-setter {
    width: 100%;
    height:auto;
    opacity: 0;
    display: none;
    pointer-events: none;
}

.video-hero .card__text {
    position: absolute;
    z-index:3;
    top: 50%;
    left:0;
}

.video-hero svg.modal_play_button {
  cursor:pointer;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 9;
    display: none;
 
}

.noscroll {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    overflow: hidden;
}

.video-hero .video-modal,
.video-hero .video-modal .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10001;
}
.video-hero .video-modal {
	overflow: hidden;
	position: fixed;
	opacity: 0.0;
  -webkit-transform: translate(500%,0%);
  transform: translate(500%,0%);
  -webkit-transition: -webkit-transform 0s linear 0s;
  transition: transform 0s linear 0s;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.video-hero .video-modal .overlay {
  background: rgba(0, 10, 0, 0.3); /* overlay color */
  opacity: 0.0;
  -webkit-transition: opacity 0.2s ease-out 0.05s;
  transition: opacity 0.2s ease-out 0.05s;
}
.video-hero .video-modal-content {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: 10002;
	margin: 0 auto;
	overflow-y: visible;
	background: transparent;
  width: calc(100% - 12em);
  height: 0;
  padding-top: calc((100% - 12em) * 0.5625); /* 16:9 calc */
}
/* Scaling to fit within the current Viewport size:
   When viewport aspect ratio is greater than 16:9
   work off the height instead of the width for calc */
@media (min-aspect-ratio: 16/9) {
 .video-hero .video-modal-content {
    width: 0;
    height: calc(100vh - 10em);
    padding-top: 0;
    padding-left: calc((100vh - 10em) * 1.7778); /* 16:9 calc */
  }
}
/* Mobile Layout Tweaks - side margins reduced */
@media (max-width: 640px) {
.video-hero	.video-modal-content {
		width: calc(100% - 1em);
    padding-top: calc((100% - 1em) * 0.5625); /* 16:9 calc */
	}
}
/* modal close button */
.video-hero .close-video-modal {
	display: block;
    position: absolute;
    left: 0;
    top: -40px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}
/* set the iframe element to stretch to fit its parent element */
.video-hero .modal-video {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: #000;
	box-shadow: 0px 2px 16px rgba(0,0,0,0.5);
}

/* video vs still on mobile */

@media (max-width: 767px) {
  .height-setter {
    display:block;
    opacity:1;
}
  .video-setter {
    display:none;
  }
}
