/* YM Bridge decorative figures. No selectors affect the surrounding site. */
.ymf {
  --ymf-ink: currentColor;
  --ymf-stroke-width: 1.05px;
  color: inherit;
}

.ymf .ymf-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--ymf-ink);
}

.ymf .ymf-linework,
.ymf .ymf-wire {
  stroke-width: var(--ymf-stroke-width);
}

.ymf .ymf-window {
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: ymf-window-drift 8s ease-in-out infinite;
}

.ymf .ymf-window--1 {
  --ymf-drift-x: -3.5px;
  --ymf-drift-y: -5px;
  --ymf-drift-scale: 1.018;
  animation-delay: -1.8s;
}

.ymf .ymf-window--2 {
  --ymf-drift-x: 4px;
  --ymf-drift-y: 2px;
  --ymf-drift-scale: 1.014;
  animation-delay: -4.6s;
}

.ymf .ymf-window--3 {
  --ymf-drift-x: -1px;
  --ymf-drift-y: 5px;
  --ymf-drift-scale: 1.025;
  animation-delay: -.2s;
}

.ymf .ymf-window-back { opacity: .62; }
.ymf .ymf-window-edge { opacity: .78; }

.ymf .ymf-rosette {
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: ymf-rosette-breathe 7s ease-in-out infinite;
}

.ymf[data-ymf-paused="true"] .ymf-window,
.ymf[data-ymf-paused="true"] .ymf-rosette {
  animation-play-state: paused;
}

@keyframes ymf-window-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(var(--ymf-drift-x), var(--ymf-drift-y)) scale(var(--ymf-drift-scale)); }
}

@keyframes ymf-rosette-breathe {
  0%, 100% { transform: scale(.98); }
  50% { transform: scale(1.02); }
}

@media (max-width: -1px) {
  .ymf:not([data-ym-motion="animate"]) .ymf-window,
  .ymf:not([data-ym-motion="animate"]) .ymf-rosette {
    animation: none;
    transform: none;
  }
}
