*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.background-embed {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.background-embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  border: 0;
  margin: 0;
  padding: 0;
  display: none;
  pointer-events: none;
}

.background-embed.is-ready iframe {
  display: block;
}

.background-embed.is-ready .fallback-image {
  display: none;
}

.controls-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #000;
  display: none;
  pointer-events: none;
}

.background-embed.is-ready .controls-mask {
  display: block;
}

@supports (height: 100dvh) {
  .background-embed iframe {
    width: 177.78dvh;
    height: 100dvh;
    min-width: 100dvw;
    min-height: 56.25dvw;
  }
}

@media (max-width: 1024px) {
  .controls-mask {
    height: 56px;
  }
}

@media (max-width: 768px) {
  .controls-mask {
    height: 48px;
  }

  .fallback-image {
    object-position: 58% center;
  }
}

@media (max-height: 500px) {
  .controls-mask {
    height: 40px;
  }
}
