/* Legacy CSS */

.np-video-loop {
  width: 100%;
  display: flex;
  overflow: hidden;
}

section.np-no-margin,
.shopify-section.np-no-margin {
  margin: 0 !important;
}

section.np-no-padding,
.shopify-section.np-no-padding {
  padding: 0 !important;
}

.np-no-margin * {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.np-video-loop.np-no-margin > * {
  margin: 0;
}

.np-video-loop.np-no-padding > * {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.np-no-padding > * {
  padding: 0;
}

.np-video-loop__container {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.np-video-loop__wrapper {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.plyr__video-wrapper video {
  object-fit: cover;
}

.np-video-loop .np-video-loop__container,
.np-video-loop.sixteen-nine .np-video-loop__container {
  min-height: 56.25vw;
}

.np-video-loop.four-three .np-video-loop__container {
  min-height: 75vw;
}

.np-video-loop.two-one .np-video-loop__container {
  min-height: 50vw;
}

.np-video-loop.three-one .np-video-loop__container {
  min-height: 33.33vw;
}

.np-video-loop.four-one .np-video-loop__container {
  min-height: 25vw;
}

.np-video-loop.one-one .np-video-loop__container {
  min-height: 100vw;
}

.np-video-loop.np-fit .np-video-loop__container {
  min-height: 100vh;
}

.np-video-loop .plyr__video-embed iframe {
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.np-video-loop .plyr__video-embed__container {
  padding-bottom: 0 !important;
  transform: none !important;
  height: 100%;
}

.np-video-loop.sixteen-nine .plyr__video-embed iframe {
  height: 180%;
  width: 101%;
}

.np-video-loop.four-three .plyr__video-embed iframe {
  height: 160%;
  width: 140%;
}

.np-video-loop.two-one .plyr__video-embed iframe {
  width: 100%;
  height: 140%;
}

.np-video-loop.three-one .plyr__video-embed iframe {
  width: 100%;
  height: 140%;
}

.np-video-loop.four-one .plyr__video-embed iframe {
  width: 240%;
  height: 230%;
}

.np-video-loop.one-one .plyr__video-embed iframe {
  height: 125%;
  width: 180%;
}

.np-video-loop-device--mobile {
  display: none;
}

@media only screen and (max-aspect-ratio: 1/1) {
  .np-video-loop-device--mobile {
    display: block;
  }

  .np-video-loop-device--desktop {
    display: none;
  }

  .np-video-loop.mobile_sixteen-nine .np-video-loop__container {
    min-height: 56.25vw;
  }

  .np-video-loop.mobile_two-one .np-video-loop__container {
    min-height: 50vw;
  }

  .np-video-loop.mobile_three-one .np-video-loop__container {
    min-height: 33.33vw;
  }

  .np-video-loop.mobile_four-three .np-video-loop__container {
    min-height: 75vw;
  }

  .np-video-loop.mobile_one-one .np-video-loop__container {
    min-height: 100vw;
  }

  .np-video-loop.mobile_three-four .np-video-loop__container {
    min-height: 133vw;
  }

  .np-video-loop.mobile_np-fit .np-video-loop__container {
    min-height: 100vh;
    max-height: 220vw;
  }

  .np-video-loop.mobile_sixteen-nine .plyr__video-embed iframe {
    height: 180%;
    width: 101%;
  }

  .np-video-loop.mobile_four-three .plyr__video-embed iframe {
    height: 160%;
    width: 140%;
  }

  .np-video-loop.mobile_one-one .plyr__video-embed iframe {
    height: 125%;
    width: 180%;
  }

  .np-video-loop.mobile_two-one .plyr__video-embed iframe {
    height: 100%;
    width: 160%;
  }

  .np-video-loop.mobile_three-one .plyr__video-embed iframe {
    height: 100%;
    width: 160%;
  }

  .np-video-loop.mobile_three-four .plyr__video-embed iframe {
    height: 120%;
    width: 240%;
  }
}

.np-video-loop__player {
  width: 100%;
  height: 100%;
}

.np-video-loop__container .plyr {
  position: relative;
  top: 50%;
  transform: translate3d(0, -50%, 0);
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.np-video-loop__container .plyr__video-wrapper {
  /*  width:  180%;
  height:  140%;
  position: relative;
  top:  50%;
  left:  50%;
  transform: translate3d(-50%, -50%, 0);*/
  padding-bottom: 0% !important;
  height: 100%;
}

.np-video-loop__container .plyr.np-video-loaded {
  opacity: 1;
}

.np-video-loop__play {
  position: absolute;
  bottom: 10px;
  left: 10px;
  transition: opacity 0.5s ease;
  pointer-events: auto;
  font-size: 2em;
  cursor: pointer;
  opacity: 0;
}

.np-ready .np-video-loop__play {
  transition-delay: 2s;
  opacity: 1;
}

.np-video-loaded .np-video-loop__play {
  pointer-events: none;
  transition-delay: 0s !important;
  opacity: 0 !important;
}

.np-video-loop__content {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 2;
  margin: auto;
}

.np-video-loop__content .np-video-loop__text-block {
  margin: auto;
  padding: 0 5vw;
  text-align: center;
}

.np-video-loop__content .np-video-loop__text-block h1,
.np-video-loop__content .np-video-loop__text-block h2,
.np-video-loop__content .np-video-loop__text-block h3,
.np-video-loop__content .np-video-loop__text-block h4,
.np-video-loop__content .np-video-loop__text-block h5 {
  color: currentColor;
  padding: 0 calc(15vw - 4em);
}

.np-video-loop__button {
  display: inline-flex;
  margin-top: 2em;
  margin-bottom: 2em;
  width: auto;
  padding-left: 2em;
  padding-right: 2em;
}

.np-video-loop__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block !important;
}

.np-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block !important;
  object-fit: cover;
}

.np-video-loop__audio-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: none;
  border: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.np-video-loop__audio-toggle svg {
  width: 100%;
  height: 100%;
  display: none;
}

.np-video-loop[data-audio="off"] .np-video-loop__audio-toggle svg.audio-off {
  display: block;
}

.np-video-loop[data-audio="on"] .np-video-loop__audio-toggle svg.audio-on {
  display: block;
}

.np-video-loop__header {
  line-height: 1.3em;
  margin-bottom: 0;
  margin-top: 0;
}

.np-video-loop__header + .np-video-loop__header {
  margin-top: 0.5em;
}
