@media (prefers-reduced-motion: no-preference) {
    html.fruktov-photo-js img:is([src], [srcset], [data-src]):not([src*=".svg" i], [src^="data:image/svg"], .lazy-spinner, .photo-ready, .photo-failed) {
        opacity: 0 !important;
    }

    html.fruktov-photo-js img.photo-ready {
        animation: fruktov-photo-appear .22s ease-out backwards;
    }

    /* Gallery position and loading order are still managed by the gallery. */
    html.fruktov-photo-js .ru-gallery-stable .project-view__image img:is(.photo-ready, .photo-failed) {
        opacity: 1;
        transition: none;
    }
}

@keyframes fruktov-photo-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}
