/* Content photography only. Individual scale preserves existing product translations/crops. */
:root {
  --content-image-hover-scale: 1.03;
  --content-image-hover-duration: 360ms;
}

:where(#main) :is(
  .product-home-visual, .reading-photo, .recommendation-photo,
  .collection-image, .system-image, .product-visual,
  .sourcing-photo, .about-feature, .app-image,
  .news-image, .wiki-card-image, .wiki-result-image,
  .article-picture, .article-body, .editorial-row, .content-image,
  .discovery-card-photo, .sg-home-inner, .sg-image
) img:not(:where(
  .credentials img, .credential-card img, .credential-lightbox img,
  .inline-film img, .film-surface img,
  .brand img, .footer-brand img,
  .cl-rootBox img, .cl-component img,
  .avatar, .avatar img, .account-avatar, .account-avatar img, .cl-avatarImage,
  .icon, .icon img, .logo, .logo img,
  [data-account-avatar], [data-account-avatar] img, [data-image-hover="off"], [data-image-hover="off"] img
)) {
  scale: 1;
  /* The authored hover remains smooth even if a broader stylesheet disables transitions. */
  transition: scale var(--content-image-hover-duration) cubic-bezier(.2,.75,.2,1) !important;
}

@media (hover:hover) and (pointer:fine) {
  :where(#main) :is(
    .product-home-visual, .reading-photo, .recommendation-photo,
    .collection-image, .system-image, .product-visual,
    .sourcing-photo, .about-feature, .app-image,
    .news-image, .wiki-card-image, .wiki-result-image,
    .article-picture, .article-body, .editorial-row, .content-image,
    .discovery-card-photo, .sg-home-inner, .sg-image
  ) img:hover:not(:where(
    .credentials img, .credential-card img, .credential-lightbox img,
    .inline-film img, .film-surface img,
    .brand img, .footer-brand img,
    .cl-rootBox img, .cl-component img,
    .avatar, .avatar img, .account-avatar, .account-avatar img, .cl-avatarImage,
    .icon, .icon img, .logo, .logo img,
    [data-account-avatar], [data-account-avatar] img, [data-image-hover="off"], [data-image-hover="off"] img
  )) {
    scale: var(--content-image-hover-scale);
  }
}
