{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"slide-projector-photo-carousel-with-a-tray-that-clicks-round-and-drops-each-frame-into-the-beam","type":"registry:block","title":"Slide Projector Photo Carousel with a Ribbed Tray That Clicks Round and Drops Each Frame into the Beam","description":"Slideshow staged as a slide projector: click the tray round a notch and the next photo drops into the beam. Free React and Tailwind code, or HTML.","dependencies":["framer-motion"],"files":[{"path":"components/we-inc/slide-projector-photo-carousel-with-a-tray-that-clicks-round-and-drops-each-frame-into-the-beam.tsx","type":"registry:component","content":"import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { motion, useReducedMotion } from \"framer-motion\";\n\n/** The slides loaded in the tray, in the order they drop into the gate. `tone` is the colour the picture throws back into the room. */\nconst slides = [\n  { title: \"Four suits, open sky\", src: \"https://images.pexels.com/photos/10547288/pexels-photo-10547288.jpeg?auto=compress&cs=tinysrgb&w=1200\", alt: \"Four models in blue, navy, pink and green suits standing apart under a wide pale sky\", tone: \"#7fb4d6\", focus: \"50% 70%\" },\n  { title: \"Pink coat, red earth\", src: \"https://images.pexels.com/photos/8221274/pexels-photo-8221274.jpeg?auto=compress&cs=tinysrgb&w=1200\", alt: \"Model in a pink coat standing on red desert rock beside a mirrored ball\", tone: \"#d2622a\", focus: \"50% 55%\" },\n  { title: \"Scarlet train\", src: \"https://images.pexels.com/photos/8037495/pexels-photo-8037495.jpeg?auto=compress&cs=tinysrgb&w=1200\", alt: \"Woman seated on rock with the long train of a red dress thrown out across the frame\", tone: \"#c8261d\", focus: \"50% 50%\" },\n  { title: \"Radio at dusk\", src: \"https://images.pexels.com/photos/19193128/pexels-photo-19193128.jpeg?auto=compress&cs=tinysrgb&w=1200\", alt: \"Woman in an orange suit holding a portable radio among old tyres at sunset\", tone: \"#d08a3a\", focus: \"50% 45%\" },\n  { title: \"Dune wind\", src: \"https://images.pexels.com/photos/28601583/pexels-photo-28601583.jpeg?auto=compress&cs=tinysrgb&w=1200\", alt: \"Woman in a red dress on a sand dune with a pale scarf streaming out in the wind\", tone: \"#d9a55c\", focus: \"50% 50%\" },\n  { title: \"Rust and ivory\", src: \"https://images.pexels.com/photos/9861699/pexels-photo-9861699.jpeg?auto=compress&cs=tinysrgb&w=1200\", alt: \"Two models in rust and ivory suits standing between tall weathered rocks\", tone: \"#8f7d63\", focus: \"50% 45%\" },\n];\n\nconst N = slides.length;\nconst SLOTS = 80; // a full tray\nconst SLOT = (Math.PI * 2) / SLOTS;\nconst TRAY = 272; // tray diameter in design pixels\nconst LAYERS = 12; // discs stacked to give the tray its ribbed wall\nconst HOLD_MS = 3600;\n\nconst mod = (a: number, n: number) => ((a % n) + n) % n;\nconst clamp = (v: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, v));\n\nconst KEYFRAMES = `\n@keyframes slide-projector-tray-mote { 0% { transform: translate3d(0,0,0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate3d(var(--mx), var(--my), 0); opacity: 0; } }\n@keyframes slide-projector-tray-lamp { 0%, 100% { opacity: 1; } 47% { opacity: 0.965; } 53% { opacity: 1; } 71% { opacity: 0.98; } }\n.slide-projector-tray-mote { animation: slide-projector-tray-mote var(--d) linear infinite; animation-delay: var(--w); }\n.slide-projector-tray-lamp { animation: slide-projector-tray-lamp 2.7s linear infinite; }\n@media (prefers-reduced-motion: reduce) { .slide-projector-tray-mote, .slide-projector-tray-lamp { animation: none; } }\n`;\n\nconst motes = Array.from({ length: 14 }, (_, i) => ({\n  left: 30 + ((i * 53) % 40),\n  top: 8 + ((i * 37) % 80),\n  size: 1.5 + ((i * 7) % 3) * 0.7,\n  mx: `${((i * 29) % 60) - 30}px`,\n  my: `${-20 - ((i * 17) % 40)}px`,\n  d: `${7 + ((i * 13) % 8)}s`,\n  w: `${-((i * 1.9) % 9)}s`,\n}));\n\nexport default function SlideProjectorCarousel() {\n  const reduce = useReducedMotion();\n  const [idx, setIdx] = useState(0);\n  const [prev, setPrev] = useState(-1);\n  const idxRef = useRef(0);\n  const zoneRef = useRef<HTMLDivElement>(null);\n  const trayRef = useRef<HTMLDivElement>(null);\n  const hitRef = useRef<HTMLDivElement>(null);\n  const sim = useRef({ th: 2.4 * SLOT, vel: 0, dragging: false, lastX: 0, paused: false, nextAuto: 0 });\n\n  const go = useCallback((next: number) => {\n    if (next === idxRef.current) return;\n    setPrev(mod(idxRef.current, N));\n    idxRef.current = next;\n    setIdx(next);\n  }, []);\n  const step = useCallback(\n    (dir: number) => {\n      go(idxRef.current + dir);\n      sim.current.nextAuto = performance.now() + HOLD_MS * 2;\n    },\n    [go],\n  );\n\n  useEffect(() => {\n    const zone = zoneRef.current;\n    const tray = trayRef.current;\n    const hit = hitRef.current;\n    if (!zone || !tray || !hit) return;\n    const s = sim.current;\n    let raf = 0;\n    let visible = true;\n    let last = performance.now();\n    s.nextAuto = last + 2800;\n    if (reduce) s.th = 0;\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 target = -idxRef.current * SLOT;\n      if (reduce) {\n        s.th = target;\n      } else if (!s.dragging) {\n        // a stiff, slightly under-damped spring: the tray knocks into its detent\n        const acc = 420 * (target - s.th) - 19 * s.vel;\n        s.vel += acc * dt;\n        s.th += s.vel * dt;\n        if (!s.paused && now > s.nextAuto) {\n          go(idxRef.current + 1);\n          s.nextAuto = now + HOLD_MS;\n        }\n      }\n      tray.style.setProperty(\"--a\", `${s.th.toFixed(5)}rad`);\n      if (visible) raf = requestAnimationFrame(tick);\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(zone);\n    raf = requestAnimationFrame(tick);\n\n    const down = (e: PointerEvent) => {\n      if (e.button !== 0) return;\n      s.dragging = true;\n      s.lastX = e.clientX;\n      s.vel = 0;\n      hit.setPointerCapture(e.pointerId);\n    };\n    const move = (e: PointerEvent) => {\n      if (!s.dragging) return;\n      const scale = zone.offsetWidth < 600 ? 0.7 : 1;\n      s.th -= (e.clientX - s.lastX) / ((TRAY / 2) * scale) / 2.2;\n      s.lastX = e.clientX;\n      go(Math.round(-s.th / SLOT));\n    };\n    const up = () => {\n      if (!s.dragging) return;\n      s.dragging = false;\n      s.nextAuto = performance.now() + HOLD_MS * 2;\n    };\n    hit.addEventListener(\"pointerdown\", down);\n    hit.addEventListener(\"pointermove\", move);\n    hit.addEventListener(\"pointerup\", up);\n    hit.addEventListener(\"pointercancel\", up);\n    return () => {\n      cancelAnimationFrame(raf);\n      io.disconnect();\n      hit.removeEventListener(\"pointerdown\", down);\n      hit.removeEventListener(\"pointermove\", move);\n      hit.removeEventListener(\"pointerup\", up);\n      hit.removeEventListener(\"pointercancel\", up);\n    };\n  }, [reduce, go]);\n\n  const onKey = (e: React.KeyboardEvent) => {\n    if (e.key === \"ArrowRight\") {\n      e.preventDefault();\n      step(1);\n    } else if (e.key === \"ArrowLeft\") {\n      e.preventDefault();\n      step(-1);\n    }\n  };\n  const pause = (v: boolean) => () => {\n    sim.current.paused = v;\n    if (!v) sim.current.nextAuto = performance.now() + HOLD_MS;\n  };\n\n  const cur = mod(idx, N);\n  const slide = slides[cur];\n  const disc = { left: -TRAY / 2, top: -TRAY / 2 - 14, width: TRAY, height: TRAY };\n  const ringMask = \"radial-gradient(circle, rgba(0,0,0,0) 52.5%, #000 53.5%, #000 95%, rgba(0,0,0,0) 96%)\";\n  const btn = \"grid h-11 w-11 place-items-center rounded-full border border-white/15 bg-white/5 text-neutral-200 transition hover:bg-white/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white\";\n\n  return (\n    <section className=\"relative overflow-hidden bg-[#0a0909]\" onMouseEnter={pause(true)} onMouseLeave={pause(false)} onFocus={pause(true)} onBlur={pause(false)}>\n      <style>{KEYFRAMES}</style>\n      {/* the room: a little of the picture's colour comes back off the wall */}\n      <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\" style={{ background: \"radial-gradient(70% 60% at 50% 38%, #1d1a18 0%, #100e0d 55%, #070606 100%)\" }} />\n      <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-x-0 top-0 h-[78%] transition-colors duration-700\" style={{ backgroundColor: slide.tone, opacity: 0.3, filter: \"blur(90px)\", transform: \"scale(0.82)\" }} />\n\n      <div role=\"group\" aria-roledescription=\"carousel\" aria-label=\"Slide projector. Use the left and right arrow keys to change the slide.\" tabIndex={0} onKeyDown={onKey} className=\"relative outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-white/70\">\n        <div className=\"relative mx-auto w-full max-w-[720px] px-5 pt-8 sm:pt-10\">\n          {/* the picture on the wall */}\n          <div className=\"slide-projector-tray-lamp relative\">\n            <div className=\"relative aspect-[3/2] overflow-hidden rounded-[12px] bg-[#040404] sm:rounded-[18px]\">\n              {slides.map((s, j) => {\n                const state = j === cur ? \"in\" : j === prev ? \"out\" : \"wait\";\n                return (\n                  <motion.div\n                    key={s.src}\n                    aria-hidden={j === cur ? undefined : true}\n                    className=\"absolute inset-0\"\n                    style={{ background: s.tone }}\n                    initial={false}\n                    animate={reduce ? { opacity: state === \"in\" ? 1 : 0, y: \"0%\" } : state === \"in\" ? { y: \"0%\", filter: \"blur(0px)\", opacity: 1 } : state === \"out\" ? { y: \"104%\", filter: \"blur(5px)\", opacity: 1 } : { y: \"-104%\", filter: \"blur(10px)\", opacity: 1 }}\n                    transition={\n                      reduce\n                        ? { duration: 0.2 }\n                        : state === \"in\"\n                          ? { y: { type: \"spring\", stiffness: 330, damping: 24, delay: 0.3 }, filter: { duration: 0.8, delay: 0.42, ease: [0.3, 0, 0.2, 1] } }\n                          : state === \"out\"\n                            ? { duration: 0.24, ease: [0.5, 0, 0.9, 0.4] }\n                            : { duration: 0 }\n                    }\n                  >\n                    <img src={s.src} alt={s.alt} width={1200} height={800} loading=\"eager\" decoding=\"async\" draggable={false} className=\"h-full w-full object-cover\" style={{ objectPosition: s.focus, filter: \"saturate(1.12) contrast(1.06) brightness(1.05)\" }} />\n                  </motion.div>\n                );\n              })}\n              {/* lamp falloff, warm cast and the soft edge of the gate */}\n              <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\" style={{ background: \"radial-gradient(72% 78% at 50% 47%, rgba(255,236,200,0.10) 0%, rgba(255,236,200,0) 52%, rgba(6,4,2,0.46) 100%)\", boxShadow: \"inset 0 0 12px 5px rgba(8,7,6,0.9)\" }} />\n              {/* grain of the painted wall */}\n              <svg aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0 h-full w-full opacity-[0.16] mix-blend-overlay\">\n                <filter id=\"slide-projector-tray-grain\">\n                  <feTurbulence type=\"fractalNoise\" baseFrequency=\"0.9\" numOctaves=\"2\" seed=\"7\" />\n                  <feColorMatrix values=\"0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.4 -0.2\" />\n                </filter>\n                <rect width=\"100%\" height=\"100%\" filter=\"url(#slide-projector-tray-grain)\" />\n              </svg>\n              {/* a hair and two specks of dust sitting in the gate: they stay put while the slides change */}\n              <svg aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0 h-full w-full\" viewBox=\"0 0 600 400\" preserveAspectRatio=\"none\">\n                <path d=\"M2 71 C 9 68, 12 76, 19 73 S 27 79, 31 76\" fill=\"none\" stroke=\"rgba(0,0,0,0.5)\" strokeWidth=\"0.8\" strokeLinecap=\"round\" />\n                <circle cx=\"548\" cy=\"352\" r=\"2.2\" fill=\"rgba(0,0,0,0.6)\" />\n                <circle cx=\"571\" cy=\"41\" r=\"1.4\" fill=\"rgba(0,0,0,0.5)\" />\n              </svg>\n            </div>\n          </div>\n          <p aria-live=\"polite\" className=\"mt-4 font-mono text-[11px] uppercase leading-relaxed tracking-[0.18em] text-neutral-400\">\n            <span className=\"tabular-nums text-white\">{String(cur + 1).padStart(2, \"0\")}</span>\n            <span className=\"mx-2 text-neutral-600\">/</span>\n            <span className=\"tabular-nums\">{String(N).padStart(2, \"0\")}</span>\n            <span className=\"ml-4 text-neutral-200\">{slide.title}</span>\n          </p>\n        </div>\n\n        {/* the projector, seen from behind and above */}\n        <div ref={zoneRef} className=\"relative mx-auto mt-5 h-[190px] w-full max-w-[720px] sm:-mt-1 sm:h-[292px]\">\n          {/* throw of the beam between the lens and the picture */}\n          <div aria-hidden=\"true\" className=\"slide-projector-tray-lamp pointer-events-none absolute inset-x-5 -top-14 bottom-[60%] sm:-top-10\" style={{ filter: \"blur(1.5px)\", clipPath: \"polygon(0 0, 100% 0, 54% 100%, 46% 100%)\", background: \"linear-gradient(180deg, rgba(255,240,214,0.02) 0%, rgba(255,240,214,0.1) 70%, rgba(255,240,214,0.2) 100%)\" }}>\n            {motes.map((m, i) => (\n              <span key={i} className=\"slide-projector-tray-mote absolute rounded-full bg-[#fff3dc]\" style={{ left: `${m.left}%`, top: `${m.top}%`, width: m.size, height: m.size, [\"--mx\" as string]: m.mx, [\"--my\" as string]: m.my, [\"--d\" as string]: m.d, [\"--w\" as string]: m.w } as React.CSSProperties} />\n            ))}\n          </div>\n          <div aria-hidden=\"true\" className=\"pointer-events-none absolute left-1/2 top-[8%] h-[60px] w-[260px] -translate-x-1/2 rounded-[50%]\" style={{ background: \"radial-gradient(closest-side, rgba(255,238,206,0.55), rgba(255,238,206,0))\", filter: \"blur(6px)\" }} />\n\n          <div className=\"absolute left-1/2 top-0 origin-top scale-[0.7] sm:scale-100\" style={{ width: 0, height: 250, perspective: \"1100px\", perspectiveOrigin: \"0 -60px\" }}>\n            <div className=\"absolute left-0\" style={{ top: 122, transformStyle: \"preserve-3d\", transform: \"rotateX(63deg)\" }}>\n              {/* body: top plate */}\n              <div aria-hidden=\"true\" className=\"absolute rounded-[26px]\" style={{ left: -178, top: -162, width: 356, height: 316, background: \"linear-gradient(180deg, #3a3b3f 0%, #232427 30%, #17181a 100%)\", boxShadow: \"inset 0 0 0 1px rgba(255,255,255,0.1), inset 0 2px 0 rgba(255,255,255,0.16), inset 0 -10px 24px rgba(0,0,0,0.6)\" }}>\n                <div className=\"absolute inset-0 rounded-[26px] transition-colors duration-700\" style={{ backgroundColor: slide.tone, opacity: 0.2, WebkitMaskImage: \"linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 55%)\", maskImage: \"linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 55%)\" }} />\n                {/* index mark and the two transport keys moulded into the plate */}\n                <div className=\"absolute bottom-[10px] left-1/2 h-[11px] w-[3px] -translate-x-1/2 rounded-full bg-[#f1ede4]\" />\n                <div className=\"absolute bottom-[12px] left-[26px] h-[16px] w-[44px] rounded-[5px]\" style={{ background: \"linear-gradient(180deg, #46474c, #1c1d1f)\", boxShadow: \"0 2px 0 #050506, inset 0 1px 0 rgba(255,255,255,0.25)\" }} />\n                <div className=\"absolute bottom-[12px] right-[26px] h-[16px] w-[44px] rounded-[5px]\" style={{ background: \"linear-gradient(180deg, #46474c, #1c1d1f)\", boxShadow: \"0 2px 0 #050506, inset 0 1px 0 rgba(255,255,255,0.25)\" }} />\n              </div>\n              {/* body: rear panel with cooling slots */}\n              <div aria-hidden=\"true\" className=\"absolute overflow-hidden rounded-b-[14px]\" style={{ left: -178, top: 154, width: 356, height: 150, transformOrigin: \"50% 0\", transform: \"rotateX(-90deg)\", background: \"linear-gradient(180deg, #2a2b2e 0%, #18191b 22%, #0c0c0d 100%)\", boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.22), inset 0 0 0 1px rgba(255,255,255,0.05)\" }}>\n                <div className=\"absolute left-[34px] top-[26px] h-[62px] w-[150px] rounded-[4px]\" style={{ background: \"repeating-linear-gradient(180deg, #050506 0px, #050506 4px, #26272a 4px, #26272a 5px, #1a1b1d 5px, #1a1b1d 9px)\", boxShadow: \"inset 0 0 0 1px rgba(0,0,0,0.8)\" }} />\n                <div className=\"absolute right-[34px] top-[26px] font-mono text-[8px] uppercase leading-[1.6] tracking-[0.22em] text-neutral-400\">\n                  Halden 2050\n                  <br />\n                  <span className=\"text-neutral-500\">Autofocus / 80 slot</span>\n                </div>\n                <div className=\"absolute right-[36px] top-[66px] h-[7px] w-[7px] rounded-full\" style={{ background: \"radial-gradient(circle at 40% 35%, #ffd2a0, #ff7a1a 55%, #a23a00)\", boxShadow: \"0 0 10px 2px rgba(255,122,26,0.7)\" }} />\n                <div className=\"absolute right-[56px] top-[62px] h-[15px] w-[30px] rounded-[3px]\" style={{ background: \"linear-gradient(180deg, #050506, #2c2d30)\", boxShadow: \"inset 0 0 0 1px rgba(255,255,255,0.08)\" }} />\n              </div>\n\n              {/* the tray: a stack of discs gives the wall, the top one carries the slides */}\n              <div ref={trayRef} className=\"absolute left-0 top-0\" style={{ transformStyle: \"preserve-3d\", [\"--a\" as string]: \"0rad\" } as React.CSSProperties}>\n                <div aria-hidden=\"true\" className=\"absolute rounded-full bg-black\" style={{ ...disc, left: disc.left - 6, width: TRAY + 12, height: TRAY + 12, top: disc.top + 4, transform: \"translateZ(1px)\", filter: \"blur(9px)\", opacity: 0.85 }} />\n                {Array.from({ length: LAYERS }, (_, k) => (\n                  <div key={k} aria-hidden=\"true\" className=\"absolute overflow-hidden rounded-full\" style={{ ...disc, transform: `translateZ(${4 + k * 3.5}px)` }}>\n                    <div className=\"absolute inset-0 rounded-full\" style={{ transform: \"rotate(var(--a))\", background: k >= LAYERS - 3 ? \"repeating-conic-gradient(from 0deg, #e9e5da 0deg, #e9e5da 0.7deg, #1b1c1e 0.7deg, #1b1c1e 4.5deg)\" : k % 4 === 0 ? \"#2a2b2e\" : \"#1b1c1e\" }} />\n                    <div className=\"absolute inset-0 rounded-full\" style={{ background: \"conic-gradient(from 180deg, rgba(0,0,0,0.1) 0deg, rgba(0,0,0,0.72) 62deg, rgba(0,0,0,0.5) 90deg, rgba(0,0,0,0.5) 270deg, rgba(0,0,0,0.72) 298deg, rgba(0,0,0,0.1) 360deg)\" }} />\n                    <div className=\"absolute inset-0 rounded-full\" style={{ background: \"conic-gradient(from 180deg, rgba(255,255,255,0.0) 0deg, rgba(255,255,255,0.2) 24deg, rgba(255,255,255,0) 50deg, rgba(255,255,255,0) 310deg, rgba(255,255,255,0.14) 338deg, rgba(255,255,255,0) 360deg)\" }} />\n                  </div>\n                ))}\n                {/* top of the tray */}\n                <div className=\"absolute rounded-full\" style={{ ...disc, transform: `translateZ(${4 + LAYERS * 3.5}px)`, background: \"#0c0c0d\", boxShadow: \"inset 0 0 0 3px #2b2c30, inset 0 0 0 4px rgba(255,255,255,0.16)\" }}>\n                  <div aria-hidden=\"true\" className=\"absolute inset-0 rounded-full\" style={{ transform: \"rotate(var(--a))\" }}>\n                    {/* eighty slots, each with the pale top edge of a slide mount showing */}\n                    <div className=\"absolute inset-0 rounded-full\" style={{ background: \"repeating-conic-gradient(from 0deg, #050506 0deg, #050506 1.5deg, #e9e5da 1.5deg, #cfcabd 3deg, #050506 3deg, #050506 4.5deg)\", WebkitMaskImage: ringMask, maskImage: ringMask }} />\n                    {Array.from({ length: 8 }, (_, q) => (\n                      <span key={q} className=\"absolute left-1/2 top-1/2 block font-mono text-[9px] font-semibold tabular-nums text-neutral-300\" style={{ transform: `translate(-50%, -50%) rotate(${q * 45}deg) translateY(${-TRAY * 0.222}px)` }}>\n                        {q === 0 ? 80 : q * 10}\n                      </span>\n                    ))}\n                  </div>\n                  {/* light off the wall, coloured by the picture, across the far side of the tray */}\n                  <div aria-hidden=\"true\" className=\"absolute inset-0 rounded-full transition-colors duration-700\" style={{ backgroundColor: slide.tone, opacity: 0.34, mixBlendMode: \"screen\", WebkitMaskImage: \"linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 62%)\", maskImage: \"linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 62%)\" }} />\n                  <div aria-hidden=\"true\" className=\"absolute inset-0 rounded-full\" style={{ background: \"linear-gradient(180deg, rgba(255,244,224,0.22) 0%, rgba(255,244,224,0) 40%, rgba(0,0,0,0.5) 100%)\" }} />\n                  {/* hub and lock ring */}\n                  <div aria-hidden=\"true\" className=\"absolute rounded-full\" style={{ inset: \"32%\", background: \"radial-gradient(circle at 50% 30%, #3b3c41 0%, #1c1d1f 55%, #0a0a0b 100%)\", boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.28), 0 0 0 1px #000, 0 6px 10px rgba(0,0,0,0.6)\" }} />\n                  <div aria-hidden=\"true\" className=\"absolute rounded-full\" style={{ inset: \"39.5%\", background: \"conic-gradient(from 150deg, #f2f3f4, #8b8e93 60deg, #2a2c2f 130deg, #c9cccf 200deg, #ffffff 240deg, #6e7277 300deg, #f2f3f4 360deg)\", boxShadow: \"0 0 0 1px #000, 0 2px 4px rgba(0,0,0,0.6)\" }} />\n                  <div aria-hidden=\"true\" className=\"absolute rounded-full\" style={{ inset: \"43%\", background: \"radial-gradient(circle at 50% 28%, #2e2f33, #0b0b0c 75%)\", boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.25)\" }} />\n                </div>\n                {/* where a hand takes hold of the tray */}\n                <div ref={hitRef} role=\"presentation\" className=\"absolute touch-pan-y rounded-full\" style={{ ...disc, transform: `translateZ(${6 + LAYERS * 3.5}px)`, cursor: \"grab\" }} />\n              </div>\n            </div>\n          </div>\n        </div>\n\n        <div className=\"pointer-events-none absolute inset-x-4 bottom-4 flex justify-between sm:inset-x-8 sm:bottom-7\">\n          <button type=\"button\" onClick={() => step(-1)} aria-label=\"Back one slide\" className={`${btn} pointer-events-auto`}>\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={() => step(1)} aria-label=\"Forward one slide\" className={`${btn} pointer-events-auto`}>\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"}]}
