/* Original ETRIX polygons and 0.9s easing:
 * https://etrix2.atweb.ch/elektroroller/silence-s01-mehr/
 * Each edge is a separate native Group block, independent of the image's column.
 */
.faexl-masked-image,
.is-style-bild-mit-schraegen {
  position: relative;
  min-inline-size: 0;
  margin: 0;
  isolation: isolate;
}

:is(.faexl-masked-image, .is-style-bild-mit-schraegen) > :is(.wp-block-image, .gb-block-image, .wp-block-video, .wp-block-cover) {
  margin: 0;
}

:is(.faexl-masked-image, .is-style-bild-mit-schraegen) > :is(.wp-block-image, .gb-block-image, .wp-block-video) :is(img, video) {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

[class*="is-style-maske-"]:not(.faexl-slider-cutout) {
  position: absolute;
  inset-inline: 0;
  z-index: 5;
  inline-size: 100%;
  max-inline-size: none;
  block-size: 5vw;
  margin: 0 !important;
  padding: 0;
  pointer-events: none;
  clip-path: var(--faexl-mask-final);
}

[class*="is-style-maske-"]:not(.faexl-slider-cutout):not(.has-background) {
  background: var(--wp--preset--color--background, #fff);
}

.go-animate {
  transition: clip-path 0.9s ease;
}

/* The final shape is also the no-JavaScript and editor fallback. */
.go-animate[data-faexl-animation-pending] {
  clip-path: var(--faexl-mask-start);
  transition: none;
}

.is-style-maske-pfeil-oben,
.is-style-maske-pfeil-unten:not(.faexl-slider-cutout) {
  --faexl-mask-start: polygon(0% 100%, 0% 100%, 100% 100%, 100% 100%, 28% 100%);
  --faexl-mask-final: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%, 28% 99%);
}

.is-style-maske-pfeil-oben {
  inset-block-start: 0;
  transform: scale(-1);
}

.is-style-maske-pfeil-unten:not(.faexl-slider-cutout) {
  inset-block-end: -1px;
}

[class*="is-style-maske-schraege-"]:not(.faexl-slider-cutout) {
  block-size: 4vw;
}

.is-style-maske-schraege-unten-box {
  --faexl-mask-final: polygon(0 100%, 0% -1%, 100.1% -1%);
  inset-block-end: -4vw;
}

.is-style-maske-schraege-oben-links {
  --faexl-mask-start: polygon(0 -1%, 0% -1%, 100.1% -1%);
  --faexl-mask-final: polygon(0 -1%, 0% 100%, 100.1% -1%);
  inset-block-start: 0;
}

.is-style-maske-schraege-oben-rechts {
  --faexl-mask-start: polygon(0px -1%, 100% -1%, 100% -1%);
  --faexl-mask-final: polygon(0 -1%, 100% 100%, 100.1% -1%);
  inset-block-start: 0;
}

.is-style-maske-schraege-unten-links {
  --faexl-mask-start: polygon(0% 101%, 100% 101%, 100% 101%);
  --faexl-mask-final: polygon(0% 101%, 100% 101%, 100.1% 0%);
  inset-block-end: 0;
}

.is-style-maske-schraege-unten-rechts {
  --faexl-mask-start: polygon(0% 101%, 100% 101%, 0% 101%);
  --faexl-mask-final: polygon(0% 101%, 100% 101%, 0% 0%);
  inset-block-end: 0;
}

.go-animate.is-style-top-image-text:not(.faexl-slide-info) {
  transform-origin: left;
  transition: transform 0.9s ease;
}

.go-animate.is-style-top-image-text[data-faexl-animation-pending]:not(.faexl-slide-info) {
  transform: rotateY(-90deg);
  transition: none;
}

.go-animate.is-style-top-image-text[data-animated]:not(.faexl-slide-info) {
  transform: rotateY(0);
}

@media (min-width: 1920px) {
  [class*="is-style-maske-"]:not(.faexl-slider-cutout) { block-size: 60px; }
  .is-style-maske-pfeil-unten:not(.faexl-slider-cutout) { block-size: 120px; }
  .is-style-maske-schraege-unten-box { inset-block-end: -60px; }
}

.editor-styles-wrapper [class*="is-style-maske-"]:not(.faexl-slider-cutout) {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .go-animate { transition: none; }
  .go-animate[data-faexl-animation-pending] { clip-path: var(--faexl-mask-final); }
  .go-animate.is-style-top-image-text[data-faexl-animation-pending]:not(.faexl-slide-info) { transform: none; }
}

@media print {
  .go-animate { transition: none; }
  .go-animate[data-faexl-animation-pending] { clip-path: var(--faexl-mask-final); }
  .go-animate.is-style-top-image-text[data-faexl-animation-pending]:not(.faexl-slide-info) { transform: none; }
}
