.wyhi-rotator {
    position: relative;
    width: 200px;
    max-width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}
.wyhi-rotator .wyhi-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}
.wyhi-rotator .wyhi-slide.is-previous { opacity: 1; z-index: 1; }
.wyhi-rotator .wyhi-slide.is-active {
    opacity: 1;
    z-index: 2;
    transition: opacity var(--wyhi-fade-duration, 2s) ease-in-out;
}
.wyhi-rotator .wyhi-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}
.wyhi-rotator:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
    .wyhi-rotator .wyhi-slide.is-active { transition: none; }
}
