/* DNY /tests project gallery motion - scoped, 2026-11-03.
   Keeps the Antra/Elementor gallery layout, image URLs and lightbox intact. */
body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item {
  position: relative;
  isolation: isolate;
  border-radius: 0;
  overflow: hidden;
  background: #F6F6F6;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: transform .76s cubic-bezier(.22,1,.36,1), opacity .76s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: zoom-in;
}
body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  filter: brightness(1);
  transition: transform .82s cubic-bezier(.22,1,.36,1), filter .54s cubic-bezier(.22,1,.36,1) !important;
  backface-visibility: hidden;
}
body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,18,20,.05) 0%, rgba(18,18,20,.32) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .48s cubic-bezier(.22,1,.36,1);
}
body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item::after {
  content: "↗";
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 17px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 19px;
  line-height: 1;
  font-family: "Urbanist", sans-serif;
  opacity: 0;
  transform: translate3d(0,8px,0);
  pointer-events: none;
  transition: opacity .4s ease, transform .57s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) and (pointer: fine) {
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:hover img,
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:focus-visible img {
    transform: scale(1.055) !important;
    filter: brightness(.87) !important;
  }
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:hover::before,
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:hover::after,
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:focus-visible::before,
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:focus-visible::after {
    opacity: 1;
  }
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:hover::after,
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:focus-visible::after {
    transform: translate3d(0,0,0);
  }
  /* Project listing cards, including related work, preserve their original badges. */
  body.dny-review .antra-item.project .project-image { overflow: hidden; }
  body.dny-review .antra-item.project .project-image img {
    transform: scale(1.001);
    filter: brightness(1);
    transition: transform .82s cubic-bezier(.22,1,.36,1), filter .52s ease !important;
  }
  body.dny-review .antra-item.project .project-block:hover .project-image img,
  body.dny-review .antra-item.project .project-image a:focus-visible img {
    transform: scale(1.045) !important;
    filter: brightness(.88) !important;
  }
}
body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item:focus-visible,
body.dny-review .antra-item.project .project-image a:focus-visible {
  outline: 3px solid #CAA05C;
  outline-offset: 3px;
}
/* JS adds this class only to cards being observed. No JS means visible content. */
html.dny-gallery-motion-ready body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item.dny-motion-pending {
  opacity: 0;
  transform: translate3d(0,22px,0) scale(.992);
}
html.dny-gallery-motion-ready body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item.dny-motion-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  transition-delay: var(--dny-motion-delay, 0ms);
}
@media (max-width: 767px) {
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item::after { right: 12px; bottom: 12px; width: 32px; height: 32px; font-size: 16px; }
}
@media (hover: none), (pointer: coarse) {
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item::before,
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.dny-gallery-motion-ready body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item,
  body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item img,
  body.dny-review .antra-item.project .project-image img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
/* DNY icon removal 2026-11-03: keep photo hover motion, no corner arrow. */
body.dny-review .dny-alt-project__gallery .dny-alt-project__gallery-item::after { content: none !important; display: none !important; }
