@media (prefers-reduced-motion: no-preference) {
  [data-bestchild-reveal-effect] {
    --bestchild-reveal-offset-y: 0px;
  }

  [data-bestchild-reveal-effect="fadeInUp"] {
    --bestchild-reveal-offset-y: 48px;
  }

  [data-bestchild-reveal-effect="fadeInDown"] {
    --bestchild-reveal-offset-y: -48px;
  }

  [data-bestchild-reveal-effect][data-bestchild-reveal-target="self"],
  [data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > *:where(:not([data-bestchild-reveal-effect])):where(:not(.wp-block-group__inner-container)):where(:not(.wp-block-cover__inner-container)):where(:not(.wp-block-cover__background)):where(:not(.wp-block-cover__image-background)):where(:not(.wp-block-cover__video-background)),
  [data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > .wp-block-group__inner-container > *:not([data-bestchild-reveal-effect]),
  .wp-block-cover[data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > .wp-block-cover__inner-container > *:not([data-bestchild-reveal-effect]) {
    opacity: 0;
    translate: 0 var(--bestchild-reveal-offset-y, 0px);
    transition-property: opacity, translate;
    transition-duration: var(--bestchild-reveal-duration, 600ms);
    transition-delay: 0ms;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, translate;
    backface-visibility: hidden;
  }

  [data-bestchild-reveal-effect][data-bestchild-reveal-target="self"].is-bestchild-reveal-visible,
  [data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > *.is-bestchild-reveal-visible,
  [data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > .wp-block-group__inner-container > *.is-bestchild-reveal-visible,
  .wp-block-cover[data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > .wp-block-cover__inner-container > *.is-bestchild-reveal-visible {
    opacity: 1;
    translate: 0 0;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-bestchild-reveal-effect][data-bestchild-reveal-target="self"],
  [data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > *:where(:not([data-bestchild-reveal-effect])):where(:not(.wp-block-group__inner-container)):where(:not(.wp-block-cover__inner-container)):where(:not(.wp-block-cover__background)):where(:not(.wp-block-cover__image-background)):where(:not(.wp-block-cover__video-background)),
  [data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > .wp-block-group__inner-container > *:not([data-bestchild-reveal-effect]),
  .wp-block-cover[data-bestchild-reveal-effect][data-bestchild-reveal-target="children"] > .wp-block-cover__inner-container > *:not([data-bestchild-reveal-effect]) {
    opacity: 1 !important;
    translate: none !important;
    transform: none !important;
    transition: none !important;
  }
}
