/* LE1 Grand format - correctif pour les articles au format Video.
   Ce CSS n'agit que si le script détecte dans le modèle v4
   le bloc photo de couverture ET le bloc video Newspaper. */
.le1-gf-video-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: var(--le1-gf-height, max(680px, 100vh)) !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  background: #101010;
}

/* La couverture occupe exactement le futur emplacement du lecteur. */
.le1-gf-video-frame .le1-gf-video-poster {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  opacity: 1;
  visibility: visible;
}
.le1-gf-video-frame .le1-gf-video-poster .tdb-block-inner,
.le1-gf-video-frame .le1-gf-video-poster .tdb-block-inner > div {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.le1-gf-video-frame .le1-gf-video-poster img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Le lecteur est dans LE MEME bloc, jamais au-dessous. */
.le1-gf-video-frame .le1-gf-image {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #080808 !important;
  overflow: hidden !important;
  z-index: 1 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.le1-gf-video-frame .le1-gf-image > .tdb-block-inner,
.le1-gf-video-frame .le1-gf-image .td-video-wrap,
.le1-gf-video-frame .le1-gf-image .td-video-container,
.le1-gf-video-frame .le1-gf-image .td-video-content,
.le1-gf-video-frame .le1-gf-image .td-video-player,
.le1-gf-video-frame .le1-gf-image .wp-video,
.le1-gf-video-frame .le1-gf-image .mejs-container {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
}
.le1-gf-video-frame .le1-gf-image .td-video-container,
.le1-gf-video-frame .le1-gf-image .td-video-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.le1-gf-video-frame .le1-gf-image iframe,
.le1-gf-video-frame .le1-gf-image video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
}
.le1-gf-video-frame .le1-gf-image video { object-fit: contain !important; }
.le1-gf-video-frame .le1-gf-image .tdb-caption-text { display: none !important; }

.le1-gf-video-frame .le1-gf-play-trigger {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 84px !important;
  height: 84px !important;
  min-width: 84px !important;
  min-height: 84px !important;
  padding: 0 !important;
  border: 2px solid rgba(255,255,255,.94) !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,.62) !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.30) !important;
  cursor: pointer !important;
  z-index: 5 !important;
  opacity: 1;
  visibility: visible;
  -webkit-tap-highlight-color: transparent;
}
.le1-gf-video-frame .le1-gf-play-trigger:hover,
.le1-gf-video-frame .le1-gf-play-trigger:focus-visible {
  background: rgba(0,0,0,.82) !important;
  outline: 3px solid rgba(255,255,255,.65) !important;
  outline-offset: 3px;
}
.le1-gf-video-frame .le1-gf-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 23px solid currentColor;
}
/* Au clic, la photo et le bouton disparaissent ; le lecteur prend leur place. */
.le1-gf-video-frame.is-playing .le1-gf-image {
  z-index: 4 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.le1-gf-video-frame.is-playing .le1-gf-video-poster,
.le1-gf-video-frame.is-playing .le1-gf-play-trigger {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Sur mobile, le titre de couverture ne doit pas couvrir les commandes video. */
@media (max-width: 767px) {
  .le1-gf-video-frame {
    height: var(--le1-gf-mobile-height, 100svh) !important;
  }
  .le1-gf-video-frame .le1-gf-play-trigger {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
  }
  .le1-gf-hero.le1-gf-video-playing .le1-gf-title,
  .le1-gf-hero.le1-gf-video-playing .le1-gf-kicker { 
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
