.ru-gallery-stable .project-view__image {
    background-color: var(--color-medium-100, #f2efec);
}
@media (min-width: 1024px) {
    .ru-gallery-stable {
        --ru-gallery-frame-height: calc(100dvh - var(--header-height) - var(---toolbar-height));
    }
    .ru-gallery-stable .project-view__images > .project-view__image {
        flex: 0 0 auto;
        width: calc(var(--ru-gallery-frame-height) * var(--ru-gallery-ratio));
        height: var(--ru-gallery-frame-height);
        transition: none;
    }
    .ru-gallery-stable .project-view__images > .project-view__image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    /* Swiper uses its own 40px spacing once it initializes. */
    .ru-gallery-stable .project-view__slider:not(.swiper-initialized) .project-view__images {
        column-gap: 40px;
    }
}
@media (prefers-reduced-motion: no-preference) {
    html.ru-gallery-js .ru-gallery-stable .project-view__image img {
        opacity: 0;
        transition: opacity .22s ease-out;
    }
    html.ru-gallery-js .ru-gallery-stable .project-view__image img.ru-gallery-ready {
        opacity: 1;
    }
}
