// ------------------------------------------------------------------------------
// <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 imageElementCosmopolitanStyle() {
    return css `
:host {
  --image-aspect-ratio: unset;
  --image-background-color: unset;
  --image-border-color: unset;
  --image-border-radius: unset;
  --image-border-style: unset;
  --image-border-width: unset;
  --image-font-family: unset;
  --image-font-letter-spacing: unset;
  --image-font-line-height: unset;
  --image-font-size: unset;
  --image-font-text-decoration: unset;
  --image-font-text-transform: unset;
  --image-font-weight: unset;
  --image-foreground-color: unset;
  --image-gap: unset;
  --image-legend-font-family: unset;
  --image-legend-font-letter-spacing: unset;
  --image-legend-font-line-height: unset;
  --image-legend-font-size: unset;
  --image-legend-font-text-decoration: unset;
  --image-legend-font-text-transform: unset;
  --image-legend-font-weight: unset;
  --image-padding-bottom: unset;
  --image-padding-left: unset;
  --image-padding-right: unset;
  --image-padding-top: unset;
  --image-shadow: unset unset unset unset unset;
  --image-shadow-blur: unset;
  --image-shadow-color: unset;
  --image-shadow-offset-x: unset;
  --image-shadow-offset-y: unset;
  --image-shadow-spread: unset;
  --image-thumbnail-blur: 20px;
  --image-transition-duration: unset;
  --image-transition-mode: unset;
  --image-transition-property: unset;
  --image-translate: none;
}

@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 {
  cursor: inherit;
  background-color: var(--image-background-color);
  color: var(--image-foreground-color);
  border-radius: var(--image-border-radius);
  place-content: center;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
}

:host [part="image"] {
  transition-duration: inherit;
  transition-timing-function: inherit;
  transition-property: inherit;
  transition: var(--image-transition-duration) filter var(--image-transition-mode), var(--image-transition-duration) -webkit-filter var(--image-transition-mode);
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--image-aspect-ratio);
  overflow: hidden;
}

:host [part="thumbnail"] {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: blur(var(--image-thumbnail-blur));
  pointer-events: none;
  transition: opacity var(--image-transition-duration) var(--image-transition-mode);
  opacity: 1;
  z-index: 1;
  position: absolute;
  inset: 0;
  transform: scale(1.1);
}

:host [part="placeholder"] {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

:host [part="legend"] {
  box-sizing: border-box;
  width: 100%;
  padding: var(--image-padding-top) var(--image-padding-right) var(--image-padding-bottom) var(--image-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 [part="content"] {
  width: 100%;
  height: 100%;
  position: absolute;
}

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

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

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

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

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

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

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

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

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

:host([state="failed"]) [part="image"] {
  display: none;
}

:host [part="image"] {
  opacity: 0;
  transition: opacity var(--image-transition-duration) var(--image-transition-mode);
}

:host([state="done"]) [part="image"] {
  opacity: 1;
}

:host([state="done"]) [part="thumbnail"] {
  opacity: 0;
}

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