/* Keep the img box, loading priority and original container structure intact. */
img.glypack-image-pending {
    background-color: #8bb946;
    background-image: url('../images/temp-logo.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    /* Hide partially decoded pixels while leaving the placeholder background visible. */
    object-position: -100000px -100000px !important;
    color: transparent;
}

img.glypack-image-fade {
    animation: glypack-image-reveal 180ms ease-out;
}

@keyframes glypack-image-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    img.glypack-image-fade { animation: none; }
}
