/* Keep image areas quiet and usable while slower connections catch up. */
img[data-media-state="loading"] {
  background-color:#edf3f7;
  background-image:linear-gradient(105deg,transparent 25%,#ffffffa6 50%,transparent 75%);
  background-size:240% 100%;
  animation:media-loading-sweep 1.8s ease-in-out 4;
}
img[data-media-state="unavailable"] {
  background:#f1f6f9;
  object-fit:contain!important;
  object-position:center!important;
}
@keyframes media-loading-sweep {
  from {background-position:100% 0}
  to {background-position:-100% 0}
}
@media(prefers-reduced-motion:reduce) {
  img[data-media-state="loading"] {animation:none;background-image:none}
}
