{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "zoom-lightbox-case-study-demo",
  "type": "registry:block",
  "title": "Zoom Lightbox: Case Study",
  "description": "Image Lightbox Gallery example, Case Study: Shots spread through an article, in different grids. The viewer pages through them in reading order and scrolls each one into view so it has a tile to land in. A take on the lightbox (image viewer) and image gallery (photo gallery). Fits portfolio, features, shop and team sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "portfolio",
    "features",
    "shop",
    "team",
    "lightbox",
    "image-gallery",
    "modal",
    "gallery",
    "gesture",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/zoom-lightbox#zoom-lightbox-case-study-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/zoom-lightbox.json"
  ],
  "files": [
    {
      "path": "components/zoom-lightbox-case-study-demo.tsx",
      "type": "registry:component",
      "content": "import { ZoomLightbox, ZoomLightboxItem } from \"@/components/ui/zoom-lightbox\";\n\nconst shots = {\n  exterior: { id: \"1600585154340-be6161a56a0c\", width: 4500, height: 3000, alt: \"A low timber and glass house lit up at dusk\", caption: \"The street side at dusk. The old garage is now the entrance.\" },\n  chair: { id: \"1586023492125-27b2c045efd7\", width: 3400, height: 3000, alt: \"A yellow armchair beside a floor lamp against a white wall\", caption: \"Reading corner in the old hallway.\" },\n  sofa: { id: \"1555041469-a586c61ea9bc\", width: 5760, height: 3840, alt: \"A green velvet sofa on a pale wooden floor\", caption: \"The snug, with the original floorboards kept.\" },\n  living: { id: \"1618221195710-dd6b41faaea6\", width: 6144, height: 3240, alt: \"A long open living room with a sofa, coffee table and wide windows\", caption: \"One room from the front door to the garden.\" },\n};\n\nconst image = (id: string, width: number) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=max&q=80&w=${width}`;\n\nfunction Shot({\n  shot,\n  aspect,\n  className,\n}: {\n  shot: (typeof shots)[keyof typeof shots];\n  aspect: string;\n  className?: string;\n}) {\n  return (\n    <figure className={className}>\n      <ZoomLightboxItem\n        src={image(shot.id, 2400)}\n        thumbnail={image(shot.id, 1200)}\n        width={shot.width}\n        height={shot.height}\n        alt={shot.alt}\n        caption={shot.caption}\n        className={`w-full rounded-xl ${aspect}`}\n      />\n      <figcaption className=\"mt-2 text-xs text-zinc-500\">{shot.caption}</figcaption>\n    </figure>\n  );\n}\n\n// Items can sit anywhere inside <ZoomLightbox>, between paragraphs and in\n// different grids. The viewer pages through all of them in reading order.\nexport function ZoomLightboxCaseStudyDemo() {\n  return (\n    <div className=\"w-full overflow-hidden rounded-xl border border-zinc-200 bg-white dark:border-zinc-800 dark:bg-zinc-950\">\n      <div className=\"h-[var(--demo-height,36rem)] overflow-y-auto overscroll-contain\">\n        <ZoomLightbox className=\"mx-auto max-w-2xl px-6 py-10 sm:px-10\">\n          <p className=\"font-mono text-xs uppercase tracking-widest text-zinc-500\">\n            Case study · Residential\n          </p>\n          <h2 className=\"mt-3 text-3xl font-semibold tracking-tight text-balance text-zinc-900 dark:text-zinc-50\">\n            The Hollow House\n          </h2>\n          <p className=\"mt-3 text-sm leading-relaxed text-pretty text-zinc-600 dark:text-zinc-400\">\n            A 1960s bungalow opened up into one long room that follows the light from the street to\n            the garden.\n          </p>\n          <dl className=\"mt-6 grid grid-cols-3 gap-4 border-y border-zinc-200 py-4 text-xs dark:border-zinc-800\">\n            {[\n              [\"Client\", \"Private\"],\n              [\"Year\", \"2026\"],\n              [\"Scope\", \"Interiors\"],\n            ].map(([term, value]) => (\n              <div key={term}>\n                <dt className=\"font-mono uppercase tracking-widest text-zinc-500\">{term}</dt>\n                <dd className=\"mt-1 text-zinc-900 dark:text-zinc-100\">{value}</dd>\n              </div>\n            ))}\n          </dl>\n\n          <Shot shot={shots.exterior} aspect=\"aspect-[3/2]\" className=\"mt-8\" />\n\n          <h3 className=\"mt-14 text-base font-medium text-zinc-900 dark:text-zinc-50\">The brief</h3>\n          <p className=\"mt-2 text-sm leading-relaxed text-pretty text-zinc-600 dark:text-zinc-400\">\n            Four small rooms, a corridor and a garage that hadn&apos;t held a car in decades. The\n            owners wanted somewhere to read, somewhere to sit together, and to see the garden from\n            the front door.\n          </p>\n\n          <div className=\"mt-8 grid grid-cols-2 gap-3\">\n            <Shot shot={shots.chair} aspect=\"aspect-[4/5]\" />\n            <Shot shot={shots.sofa} aspect=\"aspect-[4/5]\" />\n          </div>\n\n          <h3 className=\"mt-14 text-base font-medium text-zinc-900 dark:text-zinc-50\">One room</h3>\n          <p className=\"mt-2 text-sm leading-relaxed text-pretty text-zinc-600 dark:text-zinc-400\">\n            Taking out two walls turned the corridor into the house&apos;s spine. Everything else\n            hangs off it: the snug, the reading corner, and the long room that opens onto the\n            garden.\n          </p>\n\n          <Shot shot={shots.living} aspect=\"aspect-[2/1]\" className=\"mt-8\" />\n        </ZoomLightbox>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}