/* Site-specific video popup additions. Load after magnific-popup-test.css. */

/* Optional styling for your temporary test block/page. */
/*.video-popup {
  max-width: 520px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}
*/
.video-popup a {
  color: #0645ad;
}

/* Optional: makes video links obviously clickable without changing the whole site. */
.video-popup,
.popup-youtube,
.popup-vimeo,
.popup-gmaps {
  cursor: pointer;
}


/* ==========================================================================
  7. Video promo Style
   ========================================================================== */
.video-promo {
  background: #F55400;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.video-promo .video-promo-content {
  color: #fff;
}

.video-promo .video-promo-content h2 {
  color: #fff;
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.video-promo .video-promo-content p {
  margin-bottom: 30px;
}

.video-promo .video-promo-content .video-popup {
  width: 80px;
  height: 80px;
  text-align: center;
  border: 3px solid #fff;
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  font-size: 30px;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.video-promo .video-promo-content .video-popup i {
  line-height: 72px;
}

/* Keep video popup fully inside the visible browser viewport */
.mfp-iframe-holder {
  padding-top: 12px;
  padding-bottom: 12px;
}

.mfp-iframe-holder .mfp-content {
  width: calc(100% - 32px);
  max-width: min(900px, 145vh);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

/* Visible close button for video popups */
.mfp-iframe-holder .mfp-content .mfp-close {
  top: 38px !important;
  right: 8px !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  padding: 0 !important;
  text-align: center !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  opacity: 0.9;
  font-size: 26px;
  z-index: 9999;
}

/* Mobile / narrow viewport video popup */
@media all and (max-width: 768px) {

  /* Hide title/description block on narrow screens */
  .mfp-video-caption-block {
    display: none !important;
  }

  /* Let the video use the available width cleanly */
  .mfp-iframe-holder .mfp-content {
    width: calc(100% - 16px);
    max-width: none;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }

  /* Reduce excess vertical spacing around the popup */
  .mfp-iframe-holder {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  
  /*.mfp-iframe-holder .mfp-content .mfp-close {
    top: 8px !important;
  }*/
  
}