.library-bvi-image-alt {
    display: none;
}

body .bvi-body[data-bvi-images=false] .library-bvi-image-alt {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
    overflow: auto;
    padding: .25em .5em;
    border: 1px dashed;
    overflow-wrap: anywhere;
    -webkit-text-fill-color: currentColor;
}

/* BVI hides the whole link when it detects a CSS background on it. */
body .bvi-body[data-bvi-images=false]:not(.bvi-no-styles) a.bvi-background-image:not(.bvi-no-styles):has(> .library-bvi-image-alt) {
    display: revert;
    position: revert;
    border: revert;
    background-image: none !important;
}

body .bvi-body[data-bvi-images=false] .library-bvi-image-alt-block {
    display: block;
}

body .bvi-body[data-bvi-images=false][data-bvi-builtelements=false] figure.library-bvi-image-figure,
body .bvi-body[data-library-bvi-measuring][data-bvi-builtelements=false] figure.library-bvi-image-figure {
    display: block !important;
}
