/*
    - Name: "video.scss"
    - Description: "Add custom styles to video component"
*/
.micon.iconXs {
  width: var(--sizeXs);
  height: var(--sizeXs);
}

.micon.iconSm {
  width: var(--sizeSm);
  height: var(--sizeSm);
}

.micon.iconMd {
  width: var(--sizeMd);
  height: var(--sizeMd);
}

.micon.iconLg {
  width: var(--sizeLg);
  height: var(--sizeLg);
}

.micon.iconXl {
  width: var(--sizeXl);
  height: var(--sizeXl);
}

.micon.icon2xl {
  width: var(--size2xl);
  height: var(--size2xl);
}

.c-video {
  width: 100%;
  position: relative;
}

.c-video .compact {
  width: 100%;
  position: relative;
  margin: 0 auto;
  aspect-ratio: 16/9;
}

@media all and (min-width: 50.0625rem) {
  .c-video .compact {
    width: 400px;
  }
}
.c-video .compact .title-video {
  display: none;
}

.c-video .compact .remote-video {
  position: relative;
}

.c-video .compact .remote-video .field--name-thumbnail {
  display: none;
}

@media all and (min-width: 50.0625rem) {
  .c-video .compact .remote-video {
    position: relative;
  }
  .c-video .compact .remote-video::after {
    content: "";
    position: absolute;
    inset: 0;
  }
}
.c-video .compact.enlarge {
  width: 100%;
}

@media all and (min-width: 50.0625rem) {
  .c-video .compact.enlarge .title-video {
    background: var(--colorBackgroundWhite);
    font-family: var(--desktopH3BoldFontFamily), sans-serif;
    font-weight: var(--desktopH3BoldFontWeight);
    font-size: var(--desktopH3BoldFontSize);
    padding: var(--spacingXs);
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    z-index: 10;
    position: relative;
  }
  .c-video .compact.enlarge .title-video p {
    margin: 0;
    padding: 0;
    order: 2;
  }
  .c-video .compact.enlarge .title-video span {
    order: 1;
    display: flex;
    align-items: center;
    font-size: 0;
    cursor: pointer;
  }
  .c-video .compact.enlarge .title-video span svg {
    font-size: 1.125rem;
  }
}
.c-video .compact.enlarge .video-overlay {
  display: none;
}

.c-video .compact.enlarge .remote-video::after {
  content: none;
}

.c-video .compact.enlarge .remote-video .field--name-thumbnail {
  display: none;
}

.c-video .compact .media-oembed-content {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}

.c-video .compact .durationVideoPoster {
  display: none;
}

.c-video .large .remote-video {
  position: relative;
}

.c-video .large .remote-video .field--name-thumbnail {
  display: none;
}

.c-video .large .vjs-poster .durationVideoPoster {
  position: absolute;
  bottom: var(--spacingXs);
  right: var(--spacingXs);
  font-family: var(--smallBoldFontFamily), sans-serif;
  font-weight: var(--smallBoldFontWeight);
  font-size: var(--smallBoldFontSize);
  line-height: var(--smallBoldLineHeight);
  padding: var(--spacing3xs) var(--spacing2xs);
  border-radius: var(--spacing3xs);
  background: rgba(255, 255, 255, 0.6509803922);
  color: var(--colorBlack);
  z-index: 1;
}

@media all and (min-width: 62rem) {
  .c-video .large .vjs-poster .durationVideoPoster {
    bottom: var(--spacingMd);
    right: var(--spacingMd);
    color: var(--colorWhite);
    background: rgba(19, 19, 19, 0.6509803922);
  }
}
.c-video .video-overlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.c-video .video-local .video-overlay::before {
  position: absolute;
  font-size: 4.0625rem;
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.c-video .video-js {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16/9;
}

.c-video .video-js video,
.c-video .video-js iframe {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16/9;
  cursor: pointer;
  position: static;
}

.c-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.c-video .field--name-footer-text {
  display: block;
}

.field--name-media-videos .field--name-field-media-image {
  display: none;
}