// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function videoElementCosmopolitanStyle() {
    return css `
:host {
  --video-aspect-ratio: unset;
  --video-background-color: unset;
  --video-border-color: unset;
  --video-border-radius: unset;
  --video-border-style: unset;
  --video-border-width: unset;
  --video-font-family: unset;
  --video-font-letter-spacing: unset;
  --video-font-line-height: unset;
  --video-font-size: unset;
  --video-font-text-decoration: unset;
  --video-font-text-transform: unset;
  --video-font-weight: unset;
  --video-foreground-color: unset;
  --video-gap: unset;
  --video-legend-font-family: unset;
  --video-legend-font-letter-spacing: unset;
  --video-legend-font-line-height: unset;
  --video-legend-font-size: unset;
  --video-legend-font-text-decoration: unset;
  --video-legend-font-text-transform: unset;
  --video-legend-font-weight: unset;
  --video-padding-bottom: unset;
  --video-padding-left: unset;
  --video-padding-right: unset;
  --video-padding-top: unset;
  --video-shadow: unset;
  --video-transition-duration: unset;
  --video-transition-mode: unset;
  --video-transition-property: unset;
  --video-translate: unset;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host {
  background-color: var(--video-background-color);
  color: var(--video-foreground-color);
  border-radius: var(--video-border-radius);
  place-content: center;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
}

:host [part="video"] {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--video-aspect-ratio);
  overflow: hidden;
}

:host [part="legend"] {
  box-sizing: border-box;
  width: 100%;
  padding: var(--video-padding-top) var(--video-padding-right) var(--video-padding-bottom) var(--video-padding-left);
  position: absolute;
}

:host [part="legend"] mosaik-text {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-transform: inherit;
  background-color: inherit;
  border-color: inherit;
  color: inherit;
}

:host([disabled]:not([disabled="false"])) [part="video"] {
  filter: grayscale();
}

:host([disabled]:not([disabled="false"])) [part="legend"] {
  color: var(--video-foreground-color);
}

:host([legend-position="top"]) [part="legend"] {
  background: linear-gradient(#000000a6 45%, #0000 100%);
  top: 0;
}

:host([legend-position="bottom"]) [part="video"]::-webkit-media-controls-panel {
  padding-bottom: 32px;
}

:host([legend-position="bottom"]) [part="legend"] {
  background: linear-gradient(to top, #000000a6 45%, #0000 100%);
  bottom: 0;
}

:host([fit="fill"]) [part="video"] {
  -o-object-fit: fill;
  object-fit: fill;
}

:host([fit="contain"]) [part="video"] {
  -o-object-fit: contain;
  object-fit: contain;
}

:host([fit="cover"]) [part="video"] {
  -o-object-fit: cover;
  object-fit: cover;
}

:host([fit="scale-down"]) [part="video"] {
  -o-object-fit: scale-down;
  object-fit: scale-down;
}

:host([fit="none"]) [part="video"] {
  -o-object-fit: none;
  object-fit: none;
}

    `;
}
//# sourceMappingURL=VideoElement.Cosmopolitan.js.map