:is(body.mk-refresh #site-content, body #site-content, body) section.image-grid a.grid-item,
body a.hp-gallery-photo {
  overflow: hidden;
}

:is(body.mk-refresh #site-content, body #site-content, body) section.image-grid a.grid-item::before,
body a.hp-gallery-photo::before {
  display: none;
}

:is(body.mk-refresh #site-content, body #site-content, body) section.image-grid a.grid-item img,
body a.hp-gallery-photo img {
  transform: none;
  transition: transform .35s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(body.mk-refresh #site-content, body #site-content, body) section.image-grid a.grid-item:hover img,
  body a.hp-gallery-photo:hover img {
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.mk-refresh #site-content, body #site-content, body) section.image-grid a.grid-item img,
  body a.hp-gallery-photo img,
  :is(body.mk-refresh #site-content, body #site-content, body) section.image-grid a.grid-item:hover img,
  body a.hp-gallery-photo:hover img {
    transform: none;
    transition: none;
  }
}
