/* Image loading: while a photo is on its way, its frame shows the photo's own
   colors (a soft two-tone wash, set by image-loader.js) with a light shimmer;
   when it arrives it fades in from a soft blur. Photos without a stored tone
   fall back to warm grey. Cached images appear as before. */
[data-img="loading"] {
  background-color: var(--vp-tone, #ece9e4) !important;
  background-image:
    linear-gradient(100deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.38) 50%, rgba(255,255,255,0) 75%),
    linear-gradient(135deg, var(--vp-tone-a, #ece9e4), var(--vp-tone-b, #ece9e4)) !important;
  background-size: 220% 100%, 100% 100% !important;
  background-repeat: no-repeat !important;
  animation: vp-img-shimmer 1.6s ease-in-out infinite;
}
img[data-img-pending] { opacity: 0 !important; }
img.vp-img-in { animation: vp-img-in .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vp-img-shimmer {
  from { background-position: 160% 0, 0 0; }
  to { background-position: -60% 0, 0 0; }
}
@keyframes vp-img-in {
  from { opacity: 0; filter: blur(14px); }
}
@media (prefers-reduced-motion: reduce) {
  [data-img="loading"] {
    animation: none;
    background-image: linear-gradient(135deg, var(--vp-tone-a, #ece9e4), var(--vp-tone-b, #ece9e4)) !important;
    background-size: 100% 100% !important;
  }
  img.vp-img-in { animation: vp-img-fade .3s ease both; }
  @keyframes vp-img-fade { from { opacity: 0; } }
}
