// ------------------------------------------------------------------------------
// <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 videoElementJoyStyle() {
    return css `
:host {
  --video-aspect-ratio: 1;
  --video-background-color: var(--joy-scheme-background);
  --video-border-color: var(--joy-scheme-highlight);
  --video-border-radius: var(--joy-layout-radius);
  --video-border-style: solid;
  --video-border-width: 0px;
  --video-font-family: var(--joy-font-family);
  --video-font-letter-spacing: unset;
  --video-font-line-height: unset;
  --video-font-size: 12px;
  --video-font-text-decoration: unset;
  --video-font-text-transform: unset;
  --video-font-weight: normal;
  --video-foreground-color: var(--joy-scheme-foreground);
  --video-gap: 8px;
  --video-legend-font-family: var(--joy-font-family);
  --video-legend-font-letter-spacing: var(--joy-typography-caption-letter-spacing);
  --video-legend-font-line-height: var(--joy-typography-caption-line-height);
  --video-legend-font-size: var(--joy-typography-caption-font-size);
  --video-legend-font-text-decoration: var(--joy-typography-caption-text-decoration);
  --video-legend-font-text-transform: var(--joy-typography-caption-text-transform);
  --video-legend-font-weight: var(--joy-typography-caption-font-weight);
  --video-padding-bottom: 16px;
  --video-padding-left: 16px;
  --video-padding-right: 16px;
  --video-padding-top: 16px;
  --video-shadow: unset;
  --video-transition-duration: var(--joy-duration-short);
  --video-transition-mode: ease;
  --video-transition-property: color, background-color, border-color, opacity, box-shadow;
  --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;
}

:host [part="legend"] {
  --video-legend-font-family: var(--joy-typography-caption-font-family);
  --video-legend-font-size: var(--joy-typography-caption-font-size);
  --video-legend-font-line-height: var(--joy-typography-caption-line-height);
  --video-legend-font-weight: var(--joy-typography-caption-font-weight);
  --video-legend-font-letter-spacing: var(--joy-typography-caption-letter-spacing);
  --video-legend-font-text-decoration: var(--joy-typography-caption-text-decoration);
  --video-legend-font-text-transform: var(--joy-typography-caption-text-transform);
  font-family: var(--video-legend-font-family);
  font-size: var(--video-legend-font-size);
  line-height: var(--video-legend-font-line-height);
  font-weight: var(--video-legend-font-weight);
  letter-spacing: var(--video-legend-font-letter-spacing);
  -webkit-text-decoration: var(--video-legend-font-text-decoration);
  text-decoration: var(--video-legend-font-text-decoration);
  text-transform: var(--video-legend-font-text-transform);
  color: var(--joy-scheme-contrast);
}

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

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