.image {
    min-width: 0;
    min-height: 0;
}

.image_is-width-content {
    min-width: max-content;
}

.image_is-height-content {
    min-height: max-content;
}

.image__image {
    display: block;
    width: 100%;
    height: 100%;
    /* Placeholder styling */
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.image_is-width-content .image__image {
    width: auto;
}

.image_is-height-content .image__image {
    height: auto;
}

.image_error .image__image {
    visibility: hidden;
}

.image_is-rtl-mirror .image__image {
    transform: scale(-1, 1);
}

.image__aspect-wrapper {
    position: relative;
    display: block;
}

.image_aspect-content .image__aspect-wrapper {
    display: grid;
    height: 0;
    align-content: center;
}

.image_aspect-content.image_aspect-valign_top .image__aspect-wrapper {
    align-content: start;
}

.image_aspect-content.image_aspect-valign_bottom .image__aspect-wrapper {
    align-content: end;
}

.image_aspect:not(.image_aspect-content) .image__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image_loaded .image__image {
    animation-name: divkit-image-appearance;
    animation-duration: var(--divkit-appearance-duration);
    animation-delay: var(--divkit-appearance-delay);
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

.image_before-appearance .image__image {
    visibility: hidden;
}

.image[data-lottie="true"] .image__image {
    display: none;
}

@keyframes divkit-image-appearance {
    from {
        opacity: var(--divkit-appearance-fade-start);
    }
    to {
        opacity: 1;
    }
}
