/* Keep the established image composition and entrance animation. */
#products .product-thumb .capability-photo {
  width: 106%;
  max-width: none;
  height: 100%;
  margin-left: -3%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Hover and keyboard focus leave these photographs at their resting size.
   --media-reveal and --media-scale remain owned by the entrance timeline. */
.media-frame[data-media-hover="off"] {
  --media-box: 1 !important;
  --media-hover: 1 !important;
}

/* A narrow feather at the perimeter blends the photograph into the page,
   keeping the material detail in the centre fully sharp. */
#products .product-thumb {
  --photo-feather: clamp(8px, 1vw, 15px);
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--photo-feather), #000 calc(100% - var(--photo-feather)), transparent), linear-gradient(to bottom, transparent, #000 var(--photo-feather), #000 calc(100% - var(--photo-feather)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 var(--photo-feather), #000 calc(100% - var(--photo-feather)), transparent), linear-gradient(to bottom, transparent, #000 var(--photo-feather), #000 calc(100% - var(--photo-feather)), transparent);
  mask-composite: intersect;
}
