{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"light-table-slide-gallery-with-a-glass-loupe-that-glides-between-mounted-transparencies","type":"registry:block","title":"Light Table Slide Gallery with a Glass Loupe That Glides Between Mounted Transparencies","description":"Photo gallery laid out as slides on a light table: a loupe glides between them and enlarges what lies under it. Free React and Tailwind code, or HTML.","dependencies":["framer-motion"],"files":[{"path":"components/we-inc/light-table-slide-gallery-with-a-glass-loupe-that-glides-between-mounted-transparencies.tsx","type":"registry:component","content":"import { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useReducedMotion } from \"framer-motion\";\n\n/** The mounted transparencies lying on the table, in reading order. `rot`, `dx` and `dy` are how carelessly each was put down. */\nconst slides = [\n  { title: \"Lime float\", no: \"07\", date: \"JUL 14\", src: \"https://images.pexels.com/photos/756560/pexels-photo-756560.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"Woman in a red swimsuit and pink sunglasses lying on a lime green pool float\", tone: \"#12a79a\", rot: -3.2, dx: 2, dy: -3 },\n  { title: \"Silk, surface\", no: \"11\", date: \"JUL 14\", src: \"https://images.pexels.com/photos/8539547/pexels-photo-8539547.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"Woman floating on her back in a pool with a printed dress spreading round her\", tone: \"#3f9fb5\", rot: 2.1, dx: -3, dy: 4 },\n  { title: \"Lane rope\", no: \"16\", date: \"JUL 15\", src: \"https://images.pexels.com/photos/9635148/pexels-photo-9635148.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"Swimmer in a gauzy orange dress underwater beside a red lane rope\", tone: \"#1d6f8c\", rot: -1.4, dx: 4, dy: 1 },\n  { title: \"Pink heels\", no: \"22\", date: \"JUL 15\", src: \"https://images.pexels.com/photos/1507351/pexels-photo-1507351.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"Legs in pink high heels stretched out above a bright blue pool\", tone: \"#49b3d6\", rot: 3.6, dx: -2, dy: -2 },\n  { title: \"Violet, deep end\", no: \"29\", date: \"JUL 16\", src: \"https://images.pexels.com/photos/5978235/pexels-photo-5978235.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"Woman in a purple dress with arms spread wide, waist deep in a blue pool\", tone: \"#2a62c4\", rot: -2.6, dx: 1, dy: 3 },\n  { title: \"Wet print\", no: \"34\", date: \"JUL 16\", src: \"https://images.pexels.com/photos/8539557/pexels-photo-8539557.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"Woman with curly hair in a floral dress half under the water, looking at the camera\", tone: \"#7fa9b3\", rot: 1.7, dx: -4, dy: -1 },\n];\n\nconst N = slides.length;\n// Design pixels; the table top is scaled to fit its box.\nconst CELL = 206; // grid pitch\nconst PAD = 26;\nconst MOUNT = 172; // a slide mount is square\nconst WIN_W = 128; // the film window\nconst WIN_H = 86;\nconst LENS = 152; // diameter of the glass\nconst BARREL = 192; // diameter of the black barrel\nconst SKIRT = 240; // diameter of the clear base\nconst ZOOM = 2.3;\nconst HOLD_MS = 2600;\nconst TOUR = [0, 1, 4, 5, 2, 3]; // the order the loupe wanders in when left alone\n\nconst clamp = (v: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, v));\n\nfunction layout(cols: number) {\n  const rows = Math.ceil(N / cols);\n  return {\n    w: cols * CELL + PAD * 2,\n    h: rows * CELL + PAD * 2,\n    at: (i: number) => ({ x: PAD + (i % cols) * CELL + CELL / 2 + slides[i].dx, y: PAD + Math.floor(i / cols) * CELL + CELL / 2 + slides[i].dy }),\n  };\n}\n\n/** One slide: plastic mount, film window and the lab's printing. `real` slides are buttons with a true image; the copy under the glass is decoration. */\nfunction Mount({ i, x, y, real, onPick }: { i: number; x: number; y: number; real: boolean; onPick?: (i: number) => void }) {\n  const s = slides[i];\n  const body = (\n    <>\n      {/* moulded recess round the window */}\n      <span className=\"absolute rounded-[5px]\" style={{ left: (MOUNT - WIN_W) / 2 - 7, top: (MOUNT - WIN_H) / 2 - 7, width: WIN_W + 14, height: WIN_H + 14, boxShadow: \"inset 0 1px 1px rgba(0,0,0,0.16), inset 0 -1px 0 rgba(255,255,255,0.9)\", background: \"#dfe0dc\" }} />\n      <span className=\"absolute overflow-hidden rounded-[2px]\" style={{ left: (MOUNT - WIN_W) / 2, top: (MOUNT - WIN_H) / 2, width: WIN_W, height: WIN_H, background: s.tone }}>\n        {real ? (\n          <img src={s.src} alt={s.alt} width={WIN_W} height={WIN_H} loading=\"eager\" decoding=\"async\" draggable={false} className=\"h-full w-full object-cover\" style={{ filter: \"saturate(1.22) contrast(1.06) brightness(1.06)\" }} />\n        ) : (\n          <span className=\"block h-full w-full bg-cover bg-center\" style={{ backgroundImage: `url(\"${s.src}\")`, filter: \"saturate(1.22) contrast(1.06) brightness(1.06)\" }} />\n        )}\n        <span className=\"absolute inset-0\" style={{ boxShadow: \"inset 0 2px 3px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(0,0,0,0.35)\" }} />\n      </span>\n      <span className=\"absolute left-[13px] top-[11px] font-mono text-[6.5px] font-semibold uppercase leading-[1.45] tracking-[0.2em] text-neutral-500\">\n        Halden colour lab\n        <br />\n        <span className=\"font-normal\">Transparency 24 x 36</span>\n      </span>\n      <span className=\"absolute right-[13px] top-[10px] font-mono text-[11px] font-bold tabular-nums leading-none text-[#c8321e]\">{s.no}</span>\n      <span className=\"absolute bottom-[11px] left-[13px] font-mono text-[6.5px] uppercase leading-[1.45] tracking-[0.2em] text-neutral-600\">\n        <span className=\"font-semibold text-neutral-800\">{s.title}</span>\n        <br />\n        {s.date}\n      </span>\n      {/* the photographer's dot: bottom left means this way up */}\n      <span className=\"absolute bottom-[12px] right-[13px] h-[9px] w-[9px] rounded-full\" style={{ background: \"radial-gradient(circle at 35% 30%, #ff8a70, #d2341c 60%, #9c2010)\" }} />\n    </>\n  );\n  const style = {\n    left: x - MOUNT / 2,\n    top: y - MOUNT / 2,\n    width: MOUNT,\n    height: MOUNT,\n    transform: `rotate(${s.rot}deg)`,\n    background: \"linear-gradient(160deg, #f1f1ee 0%, #e4e5e1 55%, #d6d7d3 100%)\",\n    boxShadow: \"0 0 0 0.5px rgba(40,46,52,0.45), inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -2px 2px rgba(0,0,0,0.08), 0 0 26px 7px rgba(255,255,255,0.95), 0 14px 22px -8px rgba(30,44,60,0.28)\",\n  };\n  if (!real) return <span aria-hidden=\"true\" className=\"absolute block rounded-[7px]\" style={style}>{body}</span>;\n  return (\n    <button type=\"button\" onClick={() => onPick?.(i)} onFocus={() => onPick?.(i)} aria-label={`Put the loupe on slide ${s.no}, ${s.title}`} className=\"absolute block cursor-pointer rounded-[7px] text-left outline-none focus-visible:ring-2 focus-visible:ring-neutral-900 focus-visible:ring-offset-4 focus-visible:ring-offset-white\" style={style}>\n      {body}\n    </button>\n  );\n}\n\nexport default function LightTableLoupe() {\n  const reduce = useReducedMotion();\n  const [cols, setCols] = useState(3);\n  const [active, setActive] = useState(0);\n  const L = useMemo(() => layout(cols), [cols]);\n  const wrapRef = useRef<HTMLDivElement>(null);\n  const sceneRef = useRef<HTMLDivElement>(null);\n  const loupeRef = useRef<HTMLDivElement>(null);\n  const underRef = useRef<HTMLDivElement>(null);\n  const cordRef = useRef<SVGPathElement>(null);\n  const cordShadowRef = useRef<SVGPathElement>(null);\n  const glareRef = useRef<HTMLDivElement>(null);\n  const sim = useRef({ x: 0, y: 0, vx: 0, vy: 0, tx: 0, ty: 0, kx: 0, ky: 0, kvx: 0, kvy: 0, scale: 1, follow: false, drag: false, nextAuto: 0, tour: 0, active: 0, init: false });\n\n  const pick = useCallback(\n    (i: number) => {\n      const s = sim.current;\n      const p = L.at(i);\n      s.tx = p.x;\n      s.ty = p.y;\n      s.follow = false;\n      s.tour = Math.max(0, TOUR.indexOf(i));\n      s.nextAuto = performance.now() + HOLD_MS * 2.5;\n    },\n    [L],\n  );\n\n  useEffect(() => {\n    const wrap = wrapRef.current;\n    const scene = sceneRef.current;\n    const loupe = loupeRef.current;\n    const under = underRef.current;\n    if (!wrap || !scene || !loupe || !under) return;\n    const s = sim.current;\n    let raf = 0;\n    let visible = true;\n    let last = performance.now();\n    const t0 = last;\n\n    const measure = () => {\n      const w = wrap.clientWidth;\n      const want = w < 620 ? 2 : 3;\n      if (want !== cols) {\n        setCols(want);\n        return;\n      }\n      const gutter = w < 620 ? 22 : 44;\n      const sc = clamp((w - gutter * 2) / L.w, 0.5, 1.28);\n      s.scale = sc;\n      wrap.style.height = `${Math.round(L.h * sc + gutter * 2 + 40)}px`;\n      scene.style.transform = `translateX(-50%) scale(${sc.toFixed(4)})`;\n      scene.style.top = `${gutter}px`;\n    };\n    measure();\n    const ro = new ResizeObserver(measure);\n    ro.observe(wrap);\n\n    const home = L.at(TOUR[s.tour]);\n    if (!s.init) {\n      s.init = true;\n      s.x = reduce ? home.x : home.x + 230;\n      s.y = reduce ? home.y : home.y + 150;\n      s.kx = s.x + 200;\n      s.ky = s.y + 200;\n    }\n    s.tx = home.x;\n    s.ty = home.y;\n    s.nextAuto = last + 2100;\n\n    const anchor = { x: L.w + 300, y: L.h * 0.62 };\n    const paint = () => {\n      loupe.style.transform = `translate3d(${(s.x - SKIRT / 2).toFixed(2)}px,${(s.y - SKIRT / 2).toFixed(2)}px,0)`;\n      under.style.transform = `translate3d(${(LENS / 2 - ZOOM * s.x).toFixed(2)}px,${(LENS / 2 - ZOOM * s.y).toFixed(2)}px,0) scale(${ZOOM})`;\n      // the neck cord leaves the barrel at the lower right and sags to the edge of the table\n      const lx = s.x + (BARREL / 2 - 4) * 0.74;\n      const ly = s.y + (BARREL / 2 - 4) * 0.67;\n      const d = `M${lx.toFixed(1)} ${ly.toFixed(1)} Q${s.kx.toFixed(1)} ${s.ky.toFixed(1)} ${anchor.x} ${anchor.y}`;\n      cordRef.current?.setAttribute(\"d\", d);\n      cordShadowRef.current?.setAttribute(\"d\", d);\n      if (glareRef.current) glareRef.current.style.transform = `translate3d(${(-s.vx * 0.012).toFixed(2)}px,${(-s.vy * 0.012).toFixed(2)}px,0)`;\n      let best = 0;\n      let bd = Infinity;\n      for (let i = 0; i < N; i++) {\n        const p = L.at(i);\n        const dd = (p.x - s.x) ** 2 + (p.y - s.y) ** 2;\n        if (dd < bd) {\n          bd = dd;\n          best = i;\n        }\n      }\n      if (best !== s.active) {\n        s.active = best;\n        setActive(best);\n      }\n    };\n\n    const tick = (now: number) => {\n      const dt = Math.min(0.033, Math.max(0.001, (now - last) / 1000));\n      last = now;\n      const t = (now - t0) / 1000;\n      if (!reduce && !s.follow && !s.drag && now > s.nextAuto) {\n        s.tour = (s.tour + 1) % N;\n        const p = L.at(TOUR[s.tour]);\n        s.tx = p.x;\n        s.ty = p.y;\n        s.nextAuto = now + HOLD_MS;\n      }\n      if (reduce) {\n        s.x = s.tx;\n        s.y = s.ty;\n        s.vx = s.vy = 0;\n      } else {\n        // a hand is never quite still\n        const hx = s.follow || s.drag ? 0 : Math.sin(t * 0.9) * 5 + Math.sin(t * 2.3) * 1.5;\n        const hy = s.follow || s.drag ? 0 : Math.cos(t * 0.7) * 4;\n        const k = s.follow || s.drag ? 210 : 62;\n        const c = s.follow || s.drag ? 26 : 13.5;\n        s.vx += (k * (s.tx + hx - s.x) - c * s.vx) * dt;\n        s.vy += (k * (s.ty + hy - s.y) - c * s.vy) * dt;\n        s.x += s.vx * dt;\n        s.y += s.vy * dt;\n      }\n      // the cord's belly trails behind the loupe\n      const lx = s.x + BARREL * 0.36;\n      const ly = s.y + BARREL * 0.33;\n      const mx = (lx + anchor.x) / 2 - 30;\n      const my = (ly + anchor.y) / 2 + 120;\n      if (reduce) {\n        s.kx = mx;\n        s.ky = my;\n      } else {\n        s.kvx += (30 * (mx - s.kx) - 5.2 * s.kvx) * dt;\n        s.kvy += (30 * (my - s.ky) - 5.2 * s.kvy) * dt;\n        s.kx += s.kvx * dt;\n        s.ky += s.kvy * dt;\n      }\n      paint();\n      if (visible) raf = requestAnimationFrame(tick);\n    };\n\n    const io = new IntersectionObserver(([e]) => {\n      const was = visible;\n      visible = e.isIntersecting;\n      if (visible && !was) {\n        last = performance.now();\n        raf = requestAnimationFrame(tick);\n      }\n    });\n    io.observe(wrap);\n    raf = requestAnimationFrame(tick);\n\n    const toScene = (e: PointerEvent) => {\n      const r = scene.getBoundingClientRect();\n      return { x: clamp((e.clientX - r.left) / s.scale, 0, L.w), y: clamp((e.clientY - r.top) / s.scale, 0, L.h) };\n    };\n    const move = (e: PointerEvent) => {\n      if (e.pointerType === \"mouse\" || s.drag) {\n        const p = toScene(e);\n        s.follow = true;\n        s.tx = p.x;\n        s.ty = p.y;\n      }\n    };\n    const leave = () => {\n      if (s.drag) return;\n      s.follow = false;\n      const p = L.at(s.active);\n      s.tx = p.x;\n      s.ty = p.y;\n      s.tour = Math.max(0, TOUR.indexOf(s.active));\n      s.nextAuto = performance.now() + HOLD_MS;\n    };\n    const down = (e: PointerEvent) => {\n      if (e.pointerType === \"mouse\") return;\n      s.drag = true;\n      loupe.setPointerCapture(e.pointerId);\n    };\n    const up = () => {\n      if (!s.drag) return;\n      s.drag = false;\n      leave();\n    };\n    wrap.addEventListener(\"pointermove\", move);\n    wrap.addEventListener(\"pointerleave\", leave);\n    loupe.addEventListener(\"pointerdown\", down);\n    loupe.addEventListener(\"pointerup\", up);\n    loupe.addEventListener(\"pointercancel\", up);\n\n    return () => {\n      cancelAnimationFrame(raf);\n      ro.disconnect();\n      io.disconnect();\n      wrap.removeEventListener(\"pointermove\", move);\n      wrap.removeEventListener(\"pointerleave\", leave);\n      loupe.removeEventListener(\"pointerdown\", down);\n      loupe.removeEventListener(\"pointerup\", up);\n      loupe.removeEventListener(\"pointercancel\", up);\n    };\n  }, [reduce, cols, L]);\n\n  const stepBy = (dir: number) => {\n    const at = TOUR.indexOf(sim.current.active);\n    pick(TOUR[(at + dir + N) % N]);\n  };\n  const btn = \"grid h-10 w-10 place-items-center rounded-full border border-neutral-900/15 bg-white/70 text-neutral-900 transition hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-900\";\n  const ring = (d: number) => ({ left: (SKIRT - d) / 2, top: (SKIRT - d) / 2, width: d, height: d });\n\n  return (\n    <section className=\"relative overflow-hidden bg-[#f1f4f5]\">\n      {/* the lit acrylic: a hot centre, cooler corners and the faint bars of the tubes underneath */}\n      <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\" style={{ background: \"radial-gradient(70% 78% at 50% 46%, #ffffff 0%, #f8fafb 46%, #e3e9ec 100%)\" }} />\n      <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0 opacity-70\" style={{ background: \"repeating-linear-gradient(180deg, rgba(255,255,255,0) 0px, rgba(255,255,255,0) 58px, rgba(255,255,255,0.9) 96px, rgba(255,255,255,0) 134px, rgba(255,255,255,0) 150px)\" }} />\n      {/* brushed metal frame of the light box */}\n      <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0 z-20\" style={{ border: \"13px solid\", borderImage: \"linear-gradient(135deg, #eceef0 0%, #a4a9ae 22%, #dfe2e4 45%, #8b9096 70%, #d3d6d9 100%) 1\", boxShadow: \"inset 0 0 0 1px rgba(30,36,42,0.55), inset 0 3px 10px 2px rgba(50,62,74,0.28)\" }} />\n\n      <div ref={wrapRef} className=\"relative mx-auto w-full max-w-[1100px]\" style={{ height: 660 }}>\n        <div ref={sceneRef} className=\"absolute left-1/2 select-none\" style={{ top: 44, width: L.w, height: L.h, transformOrigin: \"50% 0\", transform: \"translateX(-50%)\" }}>\n          {slides.map((_, i) => {\n            const p = L.at(i);\n            return <Mount key={i} i={i} x={p.x} y={p.y} real onPick={pick} />;\n          })}\n\n          {/* neck cord */}\n          <svg aria-hidden=\"true\" className=\"pointer-events-none absolute left-0 top-0 overflow-visible\" width={L.w} height={L.h}>\n            <path ref={cordShadowRef} fill=\"none\" stroke=\"rgba(30,44,60,0.22)\" strokeWidth=\"5\" strokeLinecap=\"round\" style={{ filter: \"blur(3px)\", transform: \"translate(4px, 7px)\" }} />\n            <path ref={cordRef} fill=\"none\" stroke=\"#1a1a1d\" strokeWidth=\"2.8\" strokeLinecap=\"round\" />\n          </svg>\n\n          {/* the loupe */}\n          <div ref={loupeRef} className=\"absolute left-0 top-0 touch-none\" style={{ width: SKIRT, height: SKIRT, willChange: \"transform\", cursor: \"grab\" }}>\n            <div aria-hidden=\"true\" className=\"absolute rounded-full bg-[#1e2c3c]\" style={{ ...ring(BARREL + 6), transform: \"translate(13px, 20px)\", filter: \"blur(16px)\", opacity: 0.42 }} />\n            {/* clear acrylic skirt that stands the lens off the film */}\n            <div\n              aria-hidden=\"true\"\n              className=\"absolute rounded-full\"\n              style={{ ...ring(SKIRT), background: \"radial-gradient(circle, rgba(255,255,255,0) 62%, rgba(255,255,255,0.35) 78%, rgba(190,204,214,0.28) 92%, rgba(120,136,150,0.35) 100%)\", boxShadow: \"inset 0 0 0 1px rgba(70,84,98,0.5), inset 0 0 0 3px rgba(255,255,255,0.75), inset 0 0 0 4px rgba(70,84,98,0.18), inset 0 -8px 14px -6px rgba(60,74,88,0.3), 0 2px 5px rgba(30,44,60,0.18)\" }}\n            />\n            {/* knurled black barrel */}\n            <div aria-hidden=\"true\" className=\"absolute rounded-full\" style={{ ...ring(BARREL), background: \"repeating-conic-gradient(from 0deg, #0b0b0c 0deg, #0b0b0c 1.6deg, #2a2b2e 1.6deg, #2a2b2e 3deg)\", boxShadow: \"0 1px 0 rgba(255,255,255,0.25), 0 6px 10px rgba(10,16,24,0.35)\" }} />\n            <div aria-hidden=\"true\" className=\"absolute rounded-full\" style={{ ...ring(BARREL), background: \"conic-gradient(from 200deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,0.34) 40deg, rgba(255,255,255,0) 86deg, rgba(0,0,0,0.35) 170deg, rgba(255,255,255,0.12) 250deg, rgba(255,255,255,0) 360deg)\" }} />\n            <div aria-hidden=\"true\" className=\"absolute rounded-full\" style={{ ...ring(BARREL - 16), background: \"radial-gradient(circle, #232427 0%, #18191b 72%, #0a0a0b 100%)\", boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.2), 0 0 0 1px #000\" }} />\n            {/* polished bezel */}\n            <div aria-hidden=\"true\" className=\"absolute rounded-full\" style={{ ...ring(LENS + 10), background: \"conic-gradient(from 210deg, #f4f5f6, #8e9297 50deg, #2f3134 110deg, #b9bcc0 170deg, #ffffff 215deg, #70747a 270deg, #26282b 320deg, #f4f5f6 360deg)\", boxShadow: \"0 0 0 1px rgba(0,0,0,0.8)\" }} />\n            {/* glass */}\n            <div className=\"absolute overflow-hidden rounded-full bg-white\" style={ring(LENS)}>\n              <div ref={underRef} aria-hidden=\"true\" className=\"absolute left-0 top-0\" style={{ width: L.w, height: L.h, transformOrigin: \"0 0\", willChange: \"transform\" }}>\n                {slides.map((_, i) => {\n                  const p = L.at(i);\n                  return <Mount key={i} i={i} x={p.x} y={p.y} real={false} />;\n                })}\n              </div>\n              <div aria-hidden=\"true\" className=\"absolute inset-0 rounded-full\" style={{ boxShadow: \"inset 0 0 0 1.5px rgba(0,0,0,0.75), inset 0 0 22px 4px rgba(8,14,22,0.42), inset 3px 4px 10px rgba(255,90,60,0.14), inset -3px -4px 10px rgba(60,140,255,0.16)\" }} />\n              <div ref={glareRef} aria-hidden=\"true\" className=\"absolute inset-0 rounded-full\" style={{ background: \"radial-gradient(42% 30% at 30% 20%, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.18) 55%, rgba(255,255,255,0) 100%), radial-gradient(30% 16% at 70% 86%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%)\" }} />\n            </div>\n          </div>\n        </div>\n\n        <p aria-live=\"polite\" className=\"absolute bottom-6 left-7 z-30 font-mono text-[11px] uppercase leading-relaxed tracking-[0.18em] text-neutral-600 sm:bottom-8 sm:left-10\">\n          <span className=\"tabular-nums text-neutral-950\">Slide {slides[active].no}</span>\n          <span className=\"mx-2 text-neutral-400\">/</span>\n          <span>{slides[active].date}</span>\n          <span className=\"block text-neutral-950\">{slides[active].title}</span>\n        </p>\n        <div className=\"absolute bottom-5 right-6 z-30 flex gap-2 sm:bottom-7 sm:right-10\">\n          <button type=\"button\" onClick={() => stepBy(-1)} aria-label=\"Move the loupe to the previous slide\" className={btn}>\n            <svg aria-hidden=\"true\" width=\"18\" height=\"18\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n              <path d=\"M12 4l-6 6 6 6\" />\n            </svg>\n          </button>\n          <button type=\"button\" onClick={() => stepBy(1)} aria-label=\"Move the loupe to the next slide\" className={btn}>\n            <svg aria-hidden=\"true\" width=\"18\" height=\"18\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n              <path d=\"M8 4l6 6-6 6\" />\n            </svg>\n          </button>\n        </div>\n      </div>\n    </section>\n  );\n}\n"}]}
