/* No pending-image selector: without JS, while loading, and on failure,
   images retain their normal visibility. Eager/high-priority images never match. */
main
  img[loading="lazy" i][data-image-reveal="ready"]:not(
    [fetchpriority="high" i]
  ):not(header img, footer img, nav img, [data-lcp], [data-lcp] img) {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  main
    img[loading="lazy" i][data-image-reveal="ready"]:not(
      [fetchpriority="high" i]
    ):not(header img, footer img, nav img, [data-lcp], [data-lcp] img) {
    animation: flinthub-content-image-reveal 200ms
      cubic-bezier(0.23, 1, 0.32, 1);
  }

  @keyframes flinthub-content-image-reveal {
    from {
      opacity: 0.2;
    }
    to {
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  main
    img[loading="lazy" i][data-image-reveal="ready"]:not(
      [fetchpriority="high" i]
    ):not(header img, footer img, nav img, [data-lcp], [data-lcp] img) {
    animation: none;
    opacity: 1;
  }
}
