:host(.loaded) div.youtube-container {
  opacity: var(--sparkle-youtube-opacity-loaded, 1);
}

div.youtube-container {
  opacity: var(--sparkle-youtube-opacity-not-loaded, 0);
  transition: var(--sparkle-youtube-transition, opacity 0.15s linear);
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.embed-container iframe, .embed-container object, .embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}