{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "orbit-gallery",
  "type": "registry:component",
  "title": "Orbit Gallery",
  "description": "Cards with generated scenes on a 3D circular carousel: it spins on its own, drags with inertia, and a click brings a card to the front.",
  "author": "Marcelo Treviño Velázquez <https://furin.dev>",
  "dependencies": [],
  "categories": [
    "Galleries"
  ],
  "docs": "Installed in components/furin/orbit-gallery/. Docs, live controls and props table: https://furin.dev/components/orbit-gallery/",
  "files": [
    {
      "path": "registry/orbit-gallery/OrbitGallery.tsx",
      "content": "\"use client\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport type { CSSProperties, KeyboardEvent, PointerEvent } from \"react\";\nimport \"./OrbitGallery.css\";\n\nexport interface OrbitGalleryItem {\n  /** Título de la tarjeta. */\n  title: string;\n  /** Línea secundaria bajo el título. */\n  subtitle?: string;\n}\n\nexport interface OrbitGalleryProps {\n  /** Tarjetas del carrusel (si no pasas ninguna se usan ocho de ejemplo). */\n  items?: OrbitGalleryItem[];\n  /** Ancho de cada tarjeta, en px. */\n  cardWidth?: number;\n  /** Alto de cada tarjeta, en px. */\n  cardHeight?: number;\n  /** Grados por segundo que gira solo cuando nadie lo toca (0 lo deja quieto). */\n  autoRotate?: number;\n  /** Inclinación de la vista, en grados. */\n  tilt?: number;\n  /** Cambia las escenas generadas de las tarjetas. */\n  seed?: number;\n  /** Clase extra para el contenedor. */\n  className?: string;\n  /** Estilos extra para el contenedor. */\n  style?: CSSProperties;\n}\n\n// Escenas generadas por código (sin imágenes externas): degradados, formas y grano, deterministas por semilla.\nconst PALETAS = [\n  [\"#1b1340\", \"#6a3df0\", \"#ff7ab6\", \"#ffd6a5\"],\n  [\"#06202f\", \"#0d5f7a\", \"#27c2b5\", \"#f4f1de\"],\n  [\"#2a0e0e\", \"#b3341f\", \"#ff9d4d\", \"#ffe8b8\"],\n  [\"#0e231a\", \"#2f6b4f\", \"#9ad1a0\", \"#f2f5d0\"],\n  [\"#14162e\", \"#3a46a8\", \"#7aa2ff\", \"#e8f0ff\"],\n  [\"#2d1b2e\", \"#9a3f6f\", \"#f2789f\", \"#ffe0e6\"],\n  [\"#101216\", \"#4a4f5c\", \"#c8ccd6\", \"#ffffff\"],\n  [\"#2b1a05\", \"#a8651b\", \"#f0b44c\", \"#fff3d1\"],\n];\nconst MODOS = [\"orbes\", \"arcos\", \"sol\", \"cintas\", \"bauhaus\", \"anillos\"] as const;\nconst hacerRnd = (semilla: number) => {\n  let a = (semilla * 2654435761) >>> 0;\n  return () => {\n    a = (a + 0x6d2b79f5) >>> 0;\n    let t = a;\n    t = Math.imul(t ^ (t >>> 15), t | 1);\n    t ^= t + Math.imul(t ^ (t >>> 7), t | 61);\n    return ((t ^ (t >>> 14)) >>> 0) / 4294967296;\n  };\n};\nlet GRANO: HTMLCanvasElement | null = null;\nfunction grano() {\n  if (GRANO) return GRANO;\n  const c = document.createElement(\"canvas\");\n  c.width = c.height = 96;\n  const g = c.getContext(\"2d\")!;\n  const d = g.createImageData(96, 96);\n  const r = hacerRnd(99);\n  for (let i = 0; i < d.data.length; i += 4) { const v = r() * 255; d.data[i] = d.data[i + 1] = d.data[i + 2] = v; d.data[i + 3] = 255; }\n  g.putImageData(d, 0, 0);\n  return (GRANO = c);\n}\nfunction pintarEscena(cv: HTMLCanvasElement, W: number, H: number, semilla: number) {\n  const dpr = Math.min(window.devicePixelRatio || 1, 2);\n  cv.width = Math.round(W * dpr);\n  cv.height = Math.round(H * dpr);\n  const g = cv.getContext(\"2d\");\n  if (!g) return;\n  g.scale(dpr, dpr);\n  const rnd = hacerRnd(semilla + 3);\n  const pal = PALETAS[(semilla * 3 + 1) % PALETAS.length];\n  const modo = MODOS[semilla % MODOS.length];\n  const lin = (x0: number, y0: number, x1: number, y1: number, cols: string[]) => {\n    const l = g.createLinearGradient(x0, y0, x1, y1);\n    cols.forEach((c, i) => l.addColorStop(i / (cols.length - 1), c));\n    return l;\n  };\n  const M = Math.max(W, H);\n  g.fillStyle = lin(0, 0, W * 0.4, H, [pal[0], pal[1]]);\n  g.fillRect(0, 0, W, H);\n\n  if (modo === \"orbes\") {\n    g.globalCompositeOperation = \"screen\";\n    for (let i = 0; i < 4; i++) {\n      const x = W * (0.15 + rnd() * 0.7), y = H * (0.15 + rnd() * 0.7), r = M * (0.35 + rnd() * 0.4);\n      const c = pal[1 + (i % 3)];\n      const rg = g.createRadialGradient(x, y, 0, x, y, r);\n      rg.addColorStop(0, c + \"ee\"); rg.addColorStop(0.5, c + \"55\"); rg.addColorStop(1, c + \"00\");\n      g.fillStyle = rg; g.fillRect(0, 0, W, H);\n    }\n    g.globalCompositeOperation = \"source-over\";\n    const x = W * (0.3 + rnd() * 0.4), y = H * (0.3 + rnd() * 0.3), r = M * 0.1;\n    const rg = g.createRadialGradient(x - r * 0.3, y - r * 0.3, 0, x, y, r);\n    rg.addColorStop(0, \"#fff\"); rg.addColorStop(0.5, pal[3]); rg.addColorStop(1, pal[2]);\n    g.shadowColor = pal[3]; g.shadowBlur = r * 2.2; g.fillStyle = rg;\n    g.beginPath(); g.arc(x, y, r, 0, 7); g.fill(); g.shadowBlur = 0;\n  } else if (modo === \"arcos\") {\n    const cx = W * (0.4 + rnd() * 0.2), base = H * 1.02, n = 5;\n    for (let k = 0; k < n; k++) {\n      const r = (W * 0.52) * (1 - k / (n + 0.4));\n      g.shadowColor = \"rgba(0,0,0,0.35)\"; g.shadowBlur = M * 0.05; g.shadowOffsetY = M * 0.012;\n      g.fillStyle = lin(cx - r, base - r * 1.5, cx + r, base, [pal[(k + 1) % 4 === 0 ? 3 : (k + 1) % 4], pal[(k + 2) % 4]]);\n      g.beginPath(); g.moveTo(cx - r, base); g.lineTo(cx - r, base - r); g.arc(cx, base - r, r, Math.PI, 0); g.lineTo(cx + r, base); g.closePath(); g.fill();\n    }\n    g.shadowBlur = 0; g.shadowOffsetY = 0;\n  } else if (modo === \"sol\") {\n    g.fillStyle = lin(0, 0, 0, H * 0.8, [pal[0], pal[1], pal[2], pal[3]]);\n    g.fillRect(0, 0, W, H);\n    const sx = W * (0.3 + rnd() * 0.4), sy = H * 0.42, sr = M * 0.1;\n    const gl = g.createRadialGradient(sx, sy, sr * 0.3, sx, sy, sr * 6);\n    gl.addColorStop(0, pal[3] + \"dd\"); gl.addColorStop(0.3, pal[2] + \"55\"); gl.addColorStop(1, pal[2] + \"00\");\n    g.fillStyle = gl; g.fillRect(0, 0, W, H);\n    g.fillStyle = \"#fffaf0\"; g.beginPath(); g.arc(sx, sy, sr, 0, 7); g.fill();\n    for (let l = 0; l < 3; l++) {\n      const by = H * (0.6 + l * 0.14), amp = H * (0.16 - l * 0.03), ph = rnd() * 9;\n      g.fillStyle = lin(0, by - amp, 0, H, [pal[(l + 1) % 4], pal[0]]);\n      g.globalAlpha = 0.55 + l * 0.2;\n      g.beginPath(); g.moveTo(0, H);\n      for (let x = 0; x <= W; x += 3) g.lineTo(x, by - amp * (0.5 + 0.5 * (Math.sin(x / W * 5 + ph) * 0.6 + Math.sin(x / W * 11 + ph * 2) * 0.4)));\n      g.lineTo(W, H); g.fill();\n    }\n    g.globalAlpha = 1;\n  } else if (modo === \"cintas\") {\n    g.globalCompositeOperation = \"screen\";\n    for (let k = 0; k < 7; k++) {\n      const y0 = H * (0.1 + k * 0.14), a = H * (0.25 + rnd() * 0.3), th = H * (0.07 + rnd() * 0.09);\n      g.fillStyle = lin(0, y0, W, y0 + a, [pal[1 + (k % 3)] + \"cc\", pal[3] + \"55\"]);\n      g.beginPath(); g.moveTo(-10, y0);\n      g.bezierCurveTo(W * 0.3, y0 - a, W * 0.65, y0 + a, W + 10, y0 + a * 0.2);\n      g.lineTo(W + 10, y0 + a * 0.2 + th);\n      g.bezierCurveTo(W * 0.65, y0 + a + th, W * 0.3, y0 - a + th, -10, y0 + th);\n      g.closePath(); g.fill();\n    }\n    g.globalCompositeOperation = \"source-over\";\n  } else if (modo === \"bauhaus\") {\n    g.fillStyle = pal[3]; g.fillRect(0, 0, W, H);\n    g.fillStyle = pal[1]; g.beginPath(); g.arc(W * 0.34, H * 0.34, M * 0.3, 0, 7); g.fill();\n    g.fillStyle = pal[2]; g.beginPath(); g.arc(W * 0.78, H * 0.78, M * 0.26, Math.PI, 0, true); g.lineTo(W * 0.78 - M * 0.26, H * 0.78); g.fill();\n    g.fillStyle = pal[0]; g.fillRect(W * 0.52, H * 0.12, W * 0.22, H * 0.46);\n    g.fillStyle = pal[2]; g.beginPath(); g.moveTo(0, H); g.lineTo(0, H * 0.62); g.arc(0, H, H * 0.38, -Math.PI / 2, 0); g.closePath(); g.fill();\n  } else {\n    const cx = W * (0.35 + rnd() * 0.3), cy = H * (0.4 + rnd() * 0.2);\n    const rg = g.createRadialGradient(cx, cy, 0, cx, cy, M * 0.8);\n    rg.addColorStop(0, pal[2]); rg.addColorStop(0.6, pal[1]); rg.addColorStop(1, pal[0]);\n    g.fillStyle = rg; g.fillRect(0, 0, W, H);\n    for (let k = 0; k < 7; k++) {\n      const r = M * (0.1 + k * 0.1);\n      g.strokeStyle = pal[(k % 2) ? 3 : 2] + (k % 2 ? \"88\" : \"cc\");\n      g.lineWidth = M * (0.012 + 0.014 * rnd());\n      g.beginPath(); g.arc(cx, cy, r, 0, 7); g.stroke();\n    }\n    const gr = g.createRadialGradient(cx - M * 0.03, cy - M * 0.03, 0, cx, cy, M * 0.1);\n    gr.addColorStop(0, \"#fff\"); gr.addColorStop(1, pal[3]);\n    g.fillStyle = gr; g.shadowColor = pal[3]; g.shadowBlur = M * 0.12;\n    g.beginPath(); g.arc(cx, cy, M * 0.075, 0, 7); g.fill(); g.shadowBlur = 0;\n  }\n\n  // Viñeta suave y grano fino para que se sienta fotográfico.\n  const vg = g.createRadialGradient(W / 2, H / 2, M * 0.25, W / 2, H / 2, M * 0.8);\n  vg.addColorStop(0, \"rgba(0,0,0,0)\"); vg.addColorStop(1, \"rgba(0,0,0,0.34)\");\n  g.fillStyle = vg; g.fillRect(0, 0, W, H);\n  g.globalAlpha = 0.06; g.globalCompositeOperation = \"overlay\";\n  g.fillStyle = g.createPattern(grano(), \"repeat\")!;\n  g.fillRect(0, 0, W, H);\n  g.globalAlpha = 1; g.globalCompositeOperation = \"source-over\";\n}\n\nconst EJEMPLO: OrbitGalleryItem[] = [\"Aurora\", \"Tide\", \"Amber\", \"Haze\", \"Cobalt\", \"Dune\", \"Aether\", \"Flare\"].map((title, i) => ({ title, subtitle: `Collection ${String(i + 1).padStart(2, \"0\")}` }));\nconst limitar = (v: number, a: number, b: number) => Math.min(b, Math.max(a, v));\n\n/** Carrusel circular 3D: tarjetas con escenas generadas sobre un anillo que se arrastra con inercia, gira solo con calma y se detiene cuando lo tocas; un clic trae la tarjeta al frente. */\nexport function OrbitGallery({\n  items,\n  cardWidth = 132,\n  cardHeight = 184,\n  autoRotate = 9,\n  tilt = 8,\n  seed = 0,\n  className = \"\",\n  style,\n}: OrbitGalleryProps) {\n  const lista = useMemo(() => (items && items.length >= 3 ? items : EJEMPLO), [items]);\n  const n = lista.length;\n  const paso = 360 / n;\n  const radio = Math.round((cardWidth / 2) / Math.tan(Math.PI / n) + 30);\n  const [frente, setFrente] = useState(0);\n\n  const escena = useRef<HTMLDivElement>(null);\n  const anillo = useRef<HTMLDivElement>(null);\n  const tarjetas = useRef<(HTMLDivElement | null)[]>([]);\n  const lienzos = useRef<(HTMLCanvasElement | null)[]>([]);\n  const reversos = useRef<(HTMLCanvasElement | null)[]>([]);\n  const fis = useRef({\n    ang: 0, vel: 0, raf: 0, t: 0, visible: false, quieto: false,\n    arrastre: false, x: 0, tx: 0, movido: 0, ultimo: 0, encima: false, pausa: 0,\n    meta: null as number | null, frente: 0, id: -1,\n  });\n  const param = useRef({ n, paso, radio, tilt, autoRotate });\n  param.current = { n, paso, radio, tilt, autoRotate };\n\n  // Escenas de las tarjetas: se pintan una vez por tamaño/semilla; el reverso es el mismo cuadro en espejo.\n  useEffect(() => {\n    for (let i = 0; i < n; i++) {\n      const c = lienzos.current[i];\n      const b = reversos.current[i];\n      if (!c) continue;\n      pintarEscena(c, cardWidth, cardHeight, i + seed * 17 + 2);\n      if (b) {\n        b.width = c.width;\n        b.height = c.height;\n        const g = b.getContext(\"2d\");\n        if (g) { g.translate(b.width, 0); g.scale(-1, 1); g.drawImage(c, 0, 0); }\n      }\n    }\n  }, [n, cardWidth, cardHeight, seed]);\n\n  const pintar = () => {\n    const s = fis.current;\n    const p = param.current;\n    anillo.current?.style.setProperty(\"transform\", `translateZ(${-p.radio}px) rotateX(${-p.tilt}deg) rotateY(${s.ang.toFixed(3)}deg)`);\n    let mejor = 0, mc = -2;\n    for (let i = 0; i < p.n; i++) {\n      const c = Math.cos(((s.ang + i * p.paso) * Math.PI) / 180);\n      tarjetas.current[i]?.style.setProperty(\"--furin-og-dim\", (0.78 * Math.pow(1 - (c + 1) / 2, 0.85)).toFixed(3));\n      if (c > mc) { mc = c; mejor = i; }\n    }\n    if (mejor !== s.frente) { s.frente = mejor; setFrente(mejor); }\n  };\n\n  const correr = () => {\n    const s = fis.current;\n    if (s.raf || !s.visible) return;\n    s.t = performance.now();\n    const paso = (ahora: number) => {\n      const dt = Math.min(0.05, Math.max(0, (ahora - s.t) / 1000));\n      s.t = ahora;\n      const p = param.current;\n      if (!s.arrastre) {\n        if (s.meta !== null) {\n          // Resorte crítico hacia la tarjeta elegida.\n          const w = 9;\n          s.vel += (w * w * (s.meta - s.ang) - 2 * w * s.vel) * dt;\n          if (Math.abs(s.meta - s.ang) < 0.04 && Math.abs(s.vel) < 0.6) { s.ang = s.meta; s.vel = 0; s.meta = null; s.pausa = ahora + 2200; }\n        } else {\n          const libre = !s.quieto && !s.encima && ahora > s.pausa;\n          const objetivo = libre ? p.autoRotate : 0;\n          // La inercia se apaga hacia la velocidad de reposo, sin cortes.\n          s.vel += (objetivo - s.vel) * (1 - Math.exp(-dt * (Math.abs(s.vel) > 40 ? 1.9 : 2.6)));\n        }\n        s.ang += s.vel * dt;\n      }\n      pintar();\n      const reposo = !s.arrastre && s.meta === null && Math.abs(s.vel) < 0.02 && (s.quieto || p.autoRotate === 0 || s.encima);\n      if (reposo || !s.visible) { s.raf = 0; return; }\n      s.raf = requestAnimationFrame(paso);\n    };\n    s.raf = requestAnimationFrame(paso);\n  };\n\n  useEffect(() => {\n    const el = escena.current;\n    if (!el) return;\n    const s = fis.current;\n    s.quieto = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n    pintar();\n    const io = new IntersectionObserver(([e]) => {\n      s.visible = e.isIntersecting;\n      if (e.isIntersecting) correr();\n    });\n    io.observe(el);\n    return () => { io.disconnect(); cancelAnimationFrame(s.raf); s.raf = 0; };\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  useEffect(() => { pintar(); correr(); /* eslint-disable-next-line react-hooks/exhaustive-deps */ }, [n, radio, tilt, autoRotate]);\n\n  // Trae la tarjeta i al frente por el camino más corto.\n  const irA = (i: number) => {\n    const s = fis.current;\n    const base = -i * paso;\n    s.meta = base + Math.round((s.ang - base) / 360) * 360;\n    correr();\n  };\n\n  const alBajar = (e: PointerEvent<HTMLDivElement>) => {\n    const s = fis.current;\n    s.arrastre = true;\n    s.meta = null;\n    s.x = e.clientX;\n    s.tx = e.clientX;\n    s.movido = 0;\n    s.ultimo = performance.now();\n    s.vel = 0;\n    s.id = e.pointerId;\n    e.currentTarget.setPointerCapture(e.pointerId);\n    s.raf || correr();\n  };\n  const alMover = (e: PointerEvent<HTMLDivElement>) => {\n    const s = fis.current;\n    if (!s.arrastre || e.pointerId !== s.id) return;\n    const ahora = performance.now();\n    const dx = e.clientX - s.x;\n    s.x = e.clientX;\n    s.movido += Math.abs(dx);\n    const dAng = dx * 0.4;\n    s.ang += dAng;\n    const dt = Math.max(1, ahora - s.ultimo) / 1000;\n    s.ultimo = ahora;\n    // Velocidad suavizada para que el soltar conserve el gesto.\n    s.vel = s.vel * 0.6 + (dAng / dt) * 0.4;\n    pintar();\n  };\n  const alSoltar = (e: PointerEvent<HTMLDivElement>) => {\n    const s = fis.current;\n    if (!s.arrastre) return;\n    s.arrastre = false;\n    if (e.currentTarget.hasPointerCapture(e.pointerId)) e.currentTarget.releasePointerCapture(e.pointerId);\n    if (performance.now() - s.ultimo > 90) s.vel = 0;\n    s.vel = limitar(s.vel, -900, 900);\n    if (s.quieto) s.vel = 0;\n    if (s.movido < 5) {\n      const el = (document.elementFromPoint(e.clientX, e.clientY) as HTMLElement | null)?.closest(\"[data-i]\") as HTMLElement | null;\n      if (el) irA(Number(el.dataset.i));\n    }\n    correr();\n  };\n  const alTeclear = (e: KeyboardEvent<HTMLDivElement>) => {\n    if (e.key !== \"ArrowLeft\" && e.key !== \"ArrowRight\") return;\n    e.preventDefault();\n    irA((fis.current.frente + (e.key === \"ArrowRight\" ? -1 : 1) + n) % n);\n  };\n\n  const vars = { \"--furin-og-w\": `${cardWidth}px`, \"--furin-og-h\": `${cardHeight}px`, \"--furin-og-r\": `${radio}px` } as CSSProperties;\n  const actual = lista[frente] ?? lista[0];\n\n  return (\n    <div className={`furin-orbit-gallery ${className}`} style={{ ...vars, ...style }}>\n      <div\n        ref={escena}\n        className=\"furin-orbit-gallery__scene\"\n        role=\"group\"\n        aria-roledescription=\"carrusel\"\n        aria-label=\"Orbit gallery; drag or use the arrow keys to rotate\"\n        tabIndex={0}\n        onPointerDown={alBajar}\n        onPointerMove={alMover}\n        onPointerUp={alSoltar}\n        onPointerCancel={alSoltar}\n        onPointerEnter={() => { fis.current.encima = true; }}\n        onPointerLeave={() => { fis.current.encima = false; correr(); }}\n        onKeyDown={alTeclear}\n      >\n        <div className=\"furin-orbit-gallery__floor\" aria-hidden=\"true\" />\n        <div ref={anillo} className=\"furin-orbit-gallery__ring\">\n          {lista.map((it, i) => (\n            <div\n              key={it.title + i}\n              ref={(el) => { tarjetas.current[i] = el; }}\n              data-i={i}\n              className=\"furin-orbit-gallery__card\"\n              role=\"img\"\n              aria-label={`${it.title}${it.subtitle ? `, ${it.subtitle}` : \"\"}`}\n              style={{ transform: `rotateY(${(i * paso).toFixed(3)}deg) translateZ(${radio}px)` }}\n            >\n              <div className=\"furin-orbit-gallery__face furin-orbit-gallery__front\">\n                <canvas ref={(el) => { lienzos.current[i] = el; }} className=\"furin-orbit-gallery__art\" aria-hidden=\"true\" />\n                <i className=\"furin-orbit-gallery__gloss\" />\n                <i className=\"furin-orbit-gallery__shade\" />\n                <span className=\"furin-orbit-gallery__num\">{String(i + 1).padStart(2, \"0\")}</span>\n              </div>\n              <div className=\"furin-orbit-gallery__face furin-orbit-gallery__back\">\n                <canvas ref={(el) => { reversos.current[i] = el; }} className=\"furin-orbit-gallery__art\" aria-hidden=\"true\" />\n                <i className=\"furin-orbit-gallery__shade\" />\n              </div>\n            </div>\n          ))}\n        </div>\n      </div>\n      <div className=\"furin-orbit-gallery__caption\" aria-live=\"polite\">\n        <span key={frente} className=\"furin-orbit-gallery__title\">{actual.title}</span>\n        <span className=\"furin-orbit-gallery__sub\">{actual.subtitle ?? \"\"}</span>\n      </div>\n    </div>\n  );\n}\n\nexport default OrbitGallery;\n",
      "type": "registry:component",
      "target": "components/furin/orbit-gallery/OrbitGallery.tsx"
    },
    {
      "path": "registry/orbit-gallery/OrbitGallery.css",
      "content": ".furin-orbit-gallery {\n  --furin-og-w: 132px;\n  --furin-og-h: 184px;\n  --furin-og-r: 190px;\n  display: grid;\n  justify-items: center;\n  gap: 8px;\n  width: min(520px, 100%);\n  font-family: \"Geist\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n  color: #f3f5f8;\n}\n.furin-orbit-gallery__scene {\n  position: relative;\n  width: 100%;\n  height: calc(var(--furin-og-h) + 96px);\n  perspective: 1050px;\n  perspective-origin: 50% 24%;\n  cursor: grab;\n  touch-action: pan-y;\n  user-select: none;\n  -webkit-user-select: none;\n  outline: none;\n  -webkit-tap-highlight-color: transparent;\n}\n.furin-orbit-gallery__scene:active { cursor: grabbing; }\n.furin-orbit-gallery__scene:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); border-radius: 18px; }\n\n.furin-orbit-gallery__ring {\n  position: absolute;\n  left: 50%;\n  top: 46px;\n  width: 0;\n  height: var(--furin-og-h);\n  transform-style: preserve-3d;\n  will-change: transform;\n}\n.furin-orbit-gallery__card {\n  position: absolute;\n  left: calc(var(--furin-og-w) / -2);\n  top: 0;\n  width: var(--furin-og-w);\n  height: var(--furin-og-h);\n  transform-style: preserve-3d;\n  --furin-og-dim: 0;\n}\n.furin-orbit-gallery__face {\n  position: absolute;\n  inset: 0;\n  overflow: hidden;\n  border-radius: 14px;\n  backface-visibility: hidden;\n  -webkit-backface-visibility: hidden;\n  background: #14161b;\n  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px -12px rgba(0, 0, 0, 0.75);\n}\n.furin-orbit-gallery__back { transform: rotateY(180deg); }\n.furin-orbit-gallery__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }\n.furin-orbit-gallery__shade {\n  position: absolute;\n  inset: 0;\n  background: #07080b;\n  opacity: var(--furin-og-dim);\n  pointer-events: none;\n}\n.furin-orbit-gallery__back .furin-orbit-gallery__shade { opacity: calc(var(--furin-og-dim) * 0.5 + 0.38); }\n.furin-orbit-gallery__back .furin-orbit-gallery__art { filter: blur(1.5px) saturate(0.8); }\n/* Brillo de cristal diagonal y filo de luz en el borde superior. */\n.furin-orbit-gallery__gloss {\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background:\n    linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 32%, rgba(255, 255, 255, 0) 52%),\n    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 14%);\n  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);\n  border-radius: inherit;\n}\n.furin-orbit-gallery__num {\n  position: absolute;\n  left: 11px;\n  bottom: 9px;\n  font-size: 11px;\n  font-weight: 600;\n  letter-spacing: 0.1em;\n  font-variant-numeric: tabular-nums;\n  color: rgba(255, 255, 255, 0.82);\n  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);\n}\n\n/* Sombra de contacto del anillo sobre el \"piso\". */\n.furin-orbit-gallery__floor {\n  position: absolute;\n  left: 50%;\n  top: calc(var(--furin-og-h) + 20px);\n  width: calc(var(--furin-og-r) * 2.1);\n  height: 56px;\n  transform: translateX(-50%);\n  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));\n  filter: blur(8px);\n  pointer-events: none;\n}\n\n.furin-orbit-gallery__caption { display: grid; justify-items: center; gap: 3px; min-height: 40px; text-align: center; }\n.furin-orbit-gallery__title { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; animation: furin-orbit-gallery-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both; }\n.furin-orbit-gallery__sub { font-size: 12px; color: rgba(243, 245, 248, 0.5); letter-spacing: 0.04em; }\n@keyframes furin-orbit-gallery-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }\n\n@media (prefers-reduced-motion: reduce) {\n  .furin-orbit-gallery__title { animation: none; }\n}\n",
      "type": "registry:file",
      "target": "components/furin/orbit-gallery/OrbitGallery.css"
    }
  ]
}
