/* Site-wide image loading: hide alt text (e.g. "DISTRIBYX Hoodie") while a photo
   loads or if it fails, show a soft shimmer, then reveal the photo out of a blur.
   Classes are set by static/js/img-loading.js; opt out with data-no-blur. */
img { color: transparent; }

img.dx-img-loading {
    background-color: rgba(255, 255, 255, 0.04);
    background-image: linear-gradient(110deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0) 70%);
    background-size: 250% 100%;
    animation: dxImgShimmer 1.4s linear infinite;
    filter: blur(12px);
}

img.dx-img-in { animation: dxImgReveal 0.5s ease-out; }

@keyframes dxImgShimmer {
    from { background-position: 150% 0; }
    to   { background-position: -100% 0; }
}

@keyframes dxImgReveal {
    from { filter: blur(12px); opacity: 0.6; }
    to   { filter: blur(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    img.dx-img-loading { animation: none; }
    img.dx-img-in { animation: none; }
}
