.rli-hero-motion { width: 100%; max-width: 100%; margin-inline: auto; }
.rli-hero-art { position: relative; touch-action: pan-y pinch-zoom; }
.rli-hero-art .rli-hero-reserve { display: block; width: 100%; height: auto; }
.rli-hero-art .rli-hero-original, .rli-hero-art .rli-hero-overlay {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
}
.rli-hero-overlay { pointer-events: none; }
.rli-hero-rounded-ribbon {
    -webkit-mask: url('rounded-ribbon.svg') center / 100% 100% no-repeat;
    mask: url('rounded-ribbon.svg') center / 100% 100% no-repeat;
}
.rli-hero-whole { overflow: hidden; }
.rli-hero-full-slide { position: absolute; inset: 0; }
.rli-hero-full-slide[hidden], .rli-hero-frame-slide[hidden] { display: none; }
.rli-hero-full-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rli-hero-screen-detail { fill: none; opacity: 0; transition: opacity 300ms; }
.rli-hero-motion.is-framed-photo .rli-hero-screen-detail { opacity: .8; }
.rli-hero-ribbon {
    fill: none;
    stroke-width: 34;
    stroke-linecap: round;
    stroke-dasharray: 335 1665;
    stroke-dashoffset: 350;
    opacity: 0;
}
.rli-hero-motion.is-sweeping .rli-hero-ribbon { animation: rli-hero-sweep 1450ms cubic-bezier(.28,.1,.48,1) both; }
.rli-hero-motion.is-sweeping .rli-hero-ribbon-lower { animation-delay: 1020ms; animation-duration: 890ms; }
/* Run the same path in reverse when returning to the original photo or swiping backward. */
.rli-hero-motion.is-sweeping.is-reverse .rli-hero-ribbon { animation-direction: reverse; animation-delay: 460ms; }
.rli-hero-motion.is-sweeping.is-reverse .rli-hero-ribbon-lower { animation-delay: 0ms; }
@keyframes rli-hero-sweep {
    0% { opacity: 0; stroke-dashoffset: 350; }
    12%, 88% { opacity: 1; }
    100% { opacity: 0; stroke-dashoffset: -1020; }
}
.rli-hero-motion .rli-hero-controls {
    display: flex; justify-content: center; align-items: center; margin-top: -.3rem;
}
.rli-hero-motion .rli-hero-controls[hidden], .rli-hero-motion .rli-hero-controls button[hidden] { display: none; }
.rli-hero-motion .rli-hero-controls button {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
    border: 0; border-radius: 50%; background: transparent; color: #204f55;
    box-shadow: none; font: 700 1rem/1 system-ui, sans-serif; cursor: pointer;
}
.rli-hero-motion .rli-hero-controls button:hover { background: #204f551a; color: #204f55; }
.rli-hero-motion .rli-hero-controls button:focus-visible { outline: 2px solid #204f55; outline-offset: -2px; }
.rli-hero-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
    .rli-hero-motion .rli-hero-screen-detail { transition: none; }
    .rli-hero-motion.is-sweeping .rli-hero-ribbon { animation: none; }
}
