/* Vidéos générées par les shortcodes du plugin : [fr_video] et [fr_current_edition_video]. */
.frres-video-embed {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
}

.frres-video-embed__inner {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* oEmbed peut renvoyer une iframe directe ou enveloppée dans un div/span. */
.frres-video-embed--embed .frres-video-embed__inner > * {
  width: 100% !important;
  max-width: 100% !important;
}

.frres-video-embed--embed .frres-video-embed__inner iframe,
.frres-video-embed--embed .frres-video-embed__inner object,
.frres-video-embed--embed .frres-video-embed__inner embed {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0 !important;
}

.frres-video-embed--file .frres-video-embed__inner {
  aspect-ratio: auto;
  overflow: visible;
}

.frres-video-embed--file .wp-video,
.frres-video-embed--file .mejs-container,
.frres-video-embed--file video {
  width: 100% !important;
  max-width: 100% !important;
}

.frres-video-embed--link {
  margin-top: 0.5em;
}

.frres-video-embed__fallback-link {
  display: inline-block;
}
