/*
 * SEO-23O — Approved SML standalone video layout.
 * Scoped to the media_video content type.
 */

/* Hide the existing page-title block on video pages only. */
body.page-node-type-media-video .block-page-title-block {
  display: none !important;
}

article.sml-video-detail {
  display: block !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 0 auto !important;
  padding: 8px 12px 55px !important;
  box-sizing: border-box !important;
}

article.sml-video-detail .sml-video-detail__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

article.sml-video-detail .sml-video-detail__eyebrow {
  align-self: stretch !important;
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto 12px !important;
  color: #66798a !important;
  font: 700 12px/1.5 Arial, sans-serif !important;
  letter-spacing: 1.7px !important;
  text-align: left !important;
}

article.sml-video-detail .sml-video-detail__eyebrow span {
  color: #0069a6 !important;
  margin-right: 8px !important;
}

article.sml-video-detail .sml-video-detail__title {
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto 26px !important;
  padding: 0 !important;
  text-align: center !important;
  color: #07558a !important;
  font: 700 29px/1.3 Arial, sans-serif !important;
}

article.sml-video-detail .sml-video-detail__player {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto 26px !important;
}

article.sml-video-detail .sml-video-detail__player .field,
article.sml-video-detail .sml-video-detail__player .field__item {
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

article.sml-video-detail .video-embed-field-launch-modal {
  position: relative !important;
  display: block !important;
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border-radius: 9px !important;
  cursor: pointer !important;
}

article.sml-video-detail
.field--name-field-vimeo .video-embed-field-launch-modal img {
  display: block !important;
  width: 100% !important;
  max-width: 560px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 9px !important;
  box-shadow: 0 6px 22px rgba(0,0,0,.13) !important;
}

/* Blue play overlay: visual only; clicks reach Colorbox. */
article.sml-video-detail
.video-embed-field-launch-modal::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background: rgba(0,91,150,.9) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 76'%3E%3Cpath d='M31 23 L54 38 L31 53 Z' fill='white'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  box-shadow: 0 5px 24px rgba(0,0,0,.35) !important;
  pointer-events: none !important;
  z-index: 5 !important;
}

article.sml-video-detail
.video-embed-field-launch-modal:hover::after {
  background-color: rgba(0,113,185,.98) !important;
}

article.sml-video-detail .sml-video-detail__description {
  display: block !important;
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  padding: 24px 28px !important;
  box-sizing: border-box !important;
  background: #f3f7fa !important;
  border-left: 4px solid #0873ad !important;
  border-radius: 7px !important;
  text-align: left !important;
}

article.sml-video-detail
.sml-video-detail__description-heading {
  display: block !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #07558a !important;
  font: 700 18px/1.4 Arial, sans-serif !important;
  text-transform: none !important;
}

article.sml-video-detail .sml-video-detail__description-text,
article.sml-video-detail .sml-video-detail__description-text .field {
  color: #344657 !important;
  font: 400 16px/1.75 Arial, sans-serif !important;
  margin: 0 !important;
}

article.sml-video-detail .sml-video-detail__player iframe {
  max-width: 100% !important;
}

@media (max-width: 767px) {
  article.sml-video-detail {
    padding: 8px 5px 35px !important;
  }

  article.sml-video-detail .sml-video-detail__title {
    font-size: 24px !important;
  }

  article.sml-video-detail .sml-video-detail__description {
    padding: 18px !important;
  }

  article.sml-video-detail
  .video-embed-field-launch-modal::after {
    width: 62px !important;
    height: 62px !important;
  }
}

/* SEO-23P: Video Library navigation */
article.sml-video-detail .sml-video-detail__eyebrow a.sml-video-detail__library-link,
article.sml-video-detail .sml-video-detail__eyebrow a.sml-video-detail__library-link:visited {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
  letter-spacing: inherit !important;
}
article.sml-video-detail .sml-video-detail__eyebrow a.sml-video-detail__library-link:hover,
article.sml-video-detail .sml-video-detail__eyebrow a.sml-video-detail__library-link:focus-visible {
  color: #07558a !important;
  text-decoration: none !important;
}
