:root {
  --overlay-header-height: 60px;
}
body[data-overlay="true"] {
  overflow: hidden;
}
#main {margin-top: 0!important;}

.js-overlay-trigger-btn {
  background-color: #D1174E;
  font-size: 30px;
  padding:0.0em 1em;
  transition: background-color .2s;
  color: white;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}
.js-overlay-trigger-btn:hover {
  background-color: #01857c;
  transition: none;
}
.promo-slider__video {
  width: 100%;
}



/* Homepage video specific */
.homepage-video__inner {
  padding: 70px 0;
}
.homepage-video__outer {
  background: linear-gradient(180deg, #004952 0%, #00524C 100%);
  padding: 0 5%;
}
.promo-slider__content img,
.homepage-video__content img {
   max-width: 330px;
}
.promo-slider .glyphicon,
.homepage-video__outer .glyphicon {
  top: 4px;
}



.overlay__outer {
  width: 100vw;
  height: 100vh;
  /* Fallback for browsers that do not support Custom Properties */
  /* height: calc(var(--vh, 1vh) * 100); */
  top: 0;
  left: 0;
  z-index: 700;
  visibility: hidden;
  opacity: 0;
  background-color: transparent;
  transition: all 1s ease-out;
}

.overlay__header {
  position: fixed;
  height: var(--overlay-header-height);
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
}

#overlay__close {
  background-color: #000;
}
@media all and (max-width: 500px), (max-height: 700px) {
  #overlay__close {
    width: 40px;
    height: 40px;
    line-height: 36px;
  }
}

body[data-overlay="true"] .overlay__outer {
  visibility: visible;
  opacity: 1;
  background-color: rgba(0, 0, 0, 1);
  animation: .5s forwards fadein;
}

body[data-overlay="false"] .overlay__outer {
  animation: .5s forwards fadeout;
}

body[data-overlay="true"] .promo-slider__video.overlay-vid-open {
  z-index: 800;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: calc(100vh - (var(--overlay-header-height) * 2));
  max-width: 1280px;
}

@media all and (max-width: 940px) {
  .homepage-video__inner {
    margin-bottom: 5%;
  }
  .homepage-video__outer .homepage-video__inner {
    flex-direction: column;
  }
  .promo-slider .promo-slider__content
  .homepage-video__outer .homepage-video__content {
    text-align: center;
  }

  .homepage-video__inner {
    padding: 35px 0;
  }
  .fallback-video {
    max-width: 80%;
  }
  :root {
      --swiper-navigation-size: 40px!important;
  }
}


@media all and (max-height: 900px) {
  body[data-overlay="true"] .promo-slider__video.overlay-vid-open {
    max-width: 1000px;
  }
}
@media all and (max-height: 650px) {
  body[data-overlay="true"] .promo-slider__video.overlay-vid-open {
    max-width: 720px;
  }
}

body[data-overlay="true"] #overlay__close {
  transform: rotate(-360deg);
  animation: pulse 3.5s forwards;
}

body[data-overlay="false"] #overlay__close {
  opacity: 0;
  transition: all .5s;
}
#overlay__close.highlight, #overlay__close:hover, #overlay__close:focus {
  background: #ff3b00 !important;
}

@keyframes pulse {
  0% {
    background-color: #000;
  }

  50% {
    background-color: #333;
  }

  75% {
    background-color: #da4619;
  }

  100% {
    background-color: #2a0a0a;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    visibility: hidden;
  }

  to {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
    visibility: visible;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}
