.rf-panther {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 650 / 424;
  pointer-events: none;
}

.rf-panther > :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header .rf-panther > :is(video, .rf-panther-last, .rf-panther-static) {
  height: 48.584906%;
}

.rf-panther > :is(video, .rf-panther-last),
.rf-panther:is([data-state="playing"], [data-state="finished"]) > .rf-panther-static {
  visibility: hidden;
}

.rf-panther[data-state="playing"] > video,
.rf-panther[data-state="finished"] > .rf-panther-last {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .rf-panther[data-state] > .rf-panther-static {
    visibility: visible;
  }

  .rf-panther[data-state] > :is(video, .rf-panther-last) {
    visibility: hidden;
  }
}
