/* The photo lifts independently. The link and its caption keep their original hit area. */
#univers .photo-world {
  isolation: isolate;
  overflow: visible;
  animation: none;
  transform: none;
}
#univers .world-content {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
#univers .world-photo {
  pointer-events: none;
  z-index: 2;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  box-shadow: 0 2px 1px rgb(17 42 55 / 19%), 0 4px 8px -4px rgb(17 42 55 / 28%);
  filter: none;
  transform: none;
}
#univers .photo-world:is(.depth-follow,:active) {
  z-index: 2;
  filter: none;
  transform: none;
}
#univers .photo-world:is(.depth-follow,:active,:focus-visible) .world-photo {
  box-shadow: 0 2px 1px rgb(17 42 55 / 31%), var(--shadow-x,0px) 13px 18px -5px rgb(17 42 55 / 41%);
}
@media (prefers-reduced-motion: no-preference) {
  #univers .world-photo {
    transform-origin: center 56%;
    transition: transform 175ms cubic-bezier(.23,1,.32,1), box-shadow 160ms ease-out;
  }
  #univers .photo-world:is(.depth-follow,:active) .world-photo {
    transform: perspective(640px)
      translate3d(calc(-1.2 * var(--shadow-x,0px)), calc(-11px + .035 * var(--light-y,50%)), 27px)
      rotateX(clamp(-8deg, calc(3.5 * var(--tilt-x,0deg)), 8deg))
      rotateY(clamp(-8deg, calc(3.5 * var(--tilt-y,0deg)), 8deg));
    transition-duration: 75ms;
  }
  #univers .world-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at var(--light-x,50%) var(--light-y,40%), rgb(255 255 255 / 17%), transparent 67%);
    transition: opacity 140ms ease-out;
  }
  #univers .photo-world:is(.depth-follow,:active) .world-photo::after {opacity: 1;}
  /* Even a quick tap gets an immediate raised frame before native navigation. */
  #univers .photo-world:is([data-touch-pressed],:active) .world-photo,
  #univers .photo-world:is([data-touch-pressed],:active) .world-photo::after {
    transition-duration: 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  #univers .world-photo {transform:none;transition:none;}
}
