/* Pan & Move-category hover effects.
   One class on .hover-effect.<slug>, scoped via the
   unique slug class so multiple categories can coexist.

   Pattern for every effect in this category:
     - The image is scaled 1.2x at rest (transform: scale(1.2))
       so it overflows the wrapper on all sides. The wrapper
       clips with overflow: hidden, so the visible area is
       always fully covered by image content.
     - On hover/focus the scaled image also translates 25px
       in the effect's direction, panning within the over-sized
       image. Because the image is already 1.2x the wrapper,
       the translate never exposes an empty edge of the box,
       so no blank space appears as the image moves.
     - The translate amount (25px on a 480px-wide wrapper, ~5%)
       is small enough to stay within the 10% extra room that
       scale(1.2) provides on each side.

   Reduced-motion: every block has a paired @media rule that
   drops the transition and freezes the image at scale(1.2)
   without translate, so the visual zoom is preserved but
   the pan is suppressed. */

/* ---- pan-left ---- */
/* Scaled 1.2x, slides 25px to the left on hover/focus so the
   right edge of the picture comes into view. */
.hover-effect.pan-left{
  overflow: hidden;
}
.hover-effect.pan-left img{
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.hover-effect.pan-left:hover img,
.hover-effect.pan-left:focus-visible img{
  transform: scale(1.2) translateX(-25px);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-left img{
    transition: none;
  }
  .hover-effect.pan-left:hover img,
  .hover-effect.pan-left:focus-visible img{
    transform: scale(1.2);
  }
}

/* ---- pan-right ---- */
/* Scaled 1.2x, slides 25px to the right on hover/focus so the
   left edge of the picture comes into view. */
.hover-effect.pan-right{
  overflow: hidden;
}
.hover-effect.pan-right img{
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.hover-effect.pan-right:hover img,
.hover-effect.pan-right:focus-visible img{
  transform: scale(1.2) translateX(25px);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-right img{
    transition: none;
  }
  .hover-effect.pan-right:hover img,
  .hover-effect.pan-right:focus-visible img{
    transform: scale(1.2);
  }
}

/* ---- pan-top ---- */
/* Scaled 1.2x, slides 25px up on hover/focus so the bottom edge
   of the picture comes into view. */
.hover-effect.pan-top{
  overflow: hidden;
}
.hover-effect.pan-top img{
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.hover-effect.pan-top:hover img,
.hover-effect.pan-top:focus-visible img{
  transform: scale(1.2) translateY(-25px);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-top img{
    transition: none;
  }
  .hover-effect.pan-top:hover img,
  .hover-effect.pan-top:focus-visible img{
    transform: scale(1.2);
  }
}

/* ---- pan-bottom ---- */
/* Scaled 1.2x, slides 25px down on hover/focus so the top edge
   of the picture comes into view. */
.hover-effect.pan-bottom{
  overflow: hidden;
}
.hover-effect.pan-bottom img{
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.hover-effect.pan-bottom:hover img,
.hover-effect.pan-bottom:focus-visible img{
  transform: scale(1.2) translateY(25px);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-bottom img{
    transition: none;
  }
  .hover-effect.pan-bottom:hover img,
  .hover-effect.pan-bottom:focus-visible img{
    transform: scale(1.2);
  }
}

/* ---- pan-top-left ---- */
/* Scaled 1.2x, slides diagonally toward the top-left on
   hover/focus so the bottom-right of the picture comes into view. */
.hover-effect.pan-top-left{
  overflow: hidden;
}
.hover-effect.pan-top-left img{
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.hover-effect.pan-top-left:hover img,
.hover-effect.pan-top-left:focus-visible img{
  transform: scale(1.2) translate(-25px, -25px);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-top-left img{
    transition: none;
  }
  .hover-effect.pan-top-left:hover img,
  .hover-effect.pan-top-left:focus-visible img{
    transform: scale(1.2);
  }
}

/* ---- pan-top-right ---- */
/* Scaled 1.2x, slides diagonally toward the top-right on
   hover/focus so the bottom-left of the picture comes into view. */
.hover-effect.pan-top-right{
  overflow: hidden;
}
.hover-effect.pan-top-right img{
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.hover-effect.pan-top-right:hover img,
.hover-effect.pan-top-right:focus-visible img{
  transform: scale(1.2) translate(25px, -25px);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-top-right img{
    transition: none;
  }
  .hover-effect.pan-top-right:hover img,
  .hover-effect.pan-top-right:focus-visible img{
    transform: scale(1.2);
  }
}

/* ---- pan-bottom-left ---- */
/* Scaled 1.2x, slides diagonally toward the bottom-left on
   hover/focus so the top-right of the picture comes into view. */
.hover-effect.pan-bottom-left{
  overflow: hidden;
}
.hover-effect.pan-bottom-left img{
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.hover-effect.pan-bottom-left:hover img,
.hover-effect.pan-bottom-left:focus-visible img{
  transform: scale(1.2) translate(-25px, 25px);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-bottom-left img{
    transition: none;
  }
  .hover-effect.pan-bottom-left:hover img,
  .hover-effect.pan-bottom-left:focus-visible img{
    transform: scale(1.2);
  }
}

/* ---- pan-bottom-right ---- */
/* Scaled 1.2x, slides diagonally toward the bottom-right on
   hover/focus so the top-left of the picture comes into view. */
.hover-effect.pan-bottom-right{
  overflow: hidden;
}
.hover-effect.pan-bottom-right img{
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.hover-effect.pan-bottom-right:hover img,
.hover-effect.pan-bottom-right:focus-visible img{
  transform: scale(1.2) translate(25px, 25px);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-bottom-right img{
    transition: none;
  }
  .hover-effect.pan-bottom-right:hover img,
  .hover-effect.pan-bottom-right:focus-visible img{
    transform: scale(1.2);
  }
}

/* ---- pan-center ---- */
/* Image starts at scale(1.2) and offset toward the bottom-right
   (15px, 15px) so a corner of the picture is in view. On
   hover/focus the translate drops to 0 while the scale stays at
   1.2, so the image pans toward a centered framing while
   remaining zoomed. */
.hover-effect.pan-center{
  overflow: hidden;
}
.hover-effect.pan-center img{
  transform: scale(1.2) translate(15px, 15px);
  transition: transform 0.6s ease;
}
.hover-effect.pan-center:hover img,
.hover-effect.pan-center:focus-visible img{
  transform: scale(1.2) translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.pan-center img{
    transition: none;
  }
  .hover-effect.pan-center:hover img,
  .hover-effect.pan-center:focus-visible img{
    transform: scale(1.2) translate(15px, 15px);
  }
}
