/* Text, captions and shopping controls stay readable throughout the reveal. */
html.dd-fades-active [data-dd-fade="ready"] { opacity: .08; }
html.dd-fades-active [data-dd-fade="playing"] {
  opacity: var(--dd-fade-alpha, 1);
  will-change: opacity;
}
@media (prefers-reduced-motion: no-preference) {
  html.dd-fades-active [data-dd-fade="playing"] {
    translate: 0 var(--dd-fade-lift, 0);
    will-change: opacity, translate;
  }
}

/* Embedded viewers which retain styles but remove scripts can still fade
   supported photos as the nearest scroll container brings them into view. */
@supports (animation-timeline: view()) {
  @media screen {
    html:not(.dd-fades-active) :is(.menu-print img, .product-card .card-media, .book-poster img, .look-frame, [data-scroll-reveal]) {
      animation: dd-native-photo-fade linear both;
      animation-duration: auto;
      animation-timeline: view(block);
      animation-range: entry 0% entry 48%;
    }
  }
}
@keyframes dd-native-photo-fade {
  from { opacity: .08; }
  to { opacity: 1; }
}
@media print {
  html.dd-fades-active [data-dd-fade] {
    opacity: 1 !important;
    translate: none !important;
  }
}
