:root {
  --abio-safe-top: env(safe-area-inset-top, 0px);
  --abio-safe-right: env(safe-area-inset-right, 0px);
  --abio-safe-bottom: env(safe-area-inset-bottom, 0px);
  --abio-safe-left: env(safe-area-inset-left, 0px);
  --abio-runtime-vh: 1vh;
}

@supports (height: 100dvh) {
  :root {
    --abio-runtime-vh: 1dvh;
  }
}

html,
body {
  max-width: 100%;
}

img,
picture,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

video[data-abio-adaptive-video] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

[data-abio-media-fill] {
  position: relative;
  overflow: hidden;
}

[data-abio-media-fill] > video,
[data-abio-media-fill] > img,
[data-abio-media-fill] > picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-abio-media-contain] > video,
[data-abio-media-contain] > img,
[data-abio-media-contain] > picture {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.abio-orientation-changing *,
.abio-orientation-changing *::before,
.abio-orientation-changing *::after {
  transition-duration: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
  video[data-abio-adaptive-video][autoplay] {
    animation: none;
  }
}
