/*
 * Keep the inline relation SVGs while avoiding the WebKit compositing path
 * created by a filtered, transformed large image underneath an SVG layer.
 */
@media (max-width: 860px), (hover: none), (pointer: coarse) {
  .memory-fragment__photo--main,
  .memory-fragment--kitchen .memory-fragment__photo--main {
    z-index: 2;
    isolation: isolate;
  }

  .memory-fragment__photo--detail,
  .memory-fragment--kitchen .memory-fragment__photo--detail {
    z-index: 3;
  }

  .memory-fragment__relation,
  .memory-fragment--kitchen .memory-fragment__relation {
    z-index: 1;
  }

  .memory-fragment__photo--main > img,
  .memory-fragment--kitchen .memory-fragment__photo--main > img {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
}
