---
title: "Classic Gallery · UI SDK — StyleX Blocks"
description: "Centered editorial gallery pairing category filter tabs, a responsive 3:2 architectural photography grid, and a keyboard-navigable lightbox dialog with camera metadata."
url: "https://stylexblocks.com/block/ui-sdk/classic-gallery/"
agent:
  instructions: "Use this search API to find relevant components and blocks across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://stylexblocks.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Classic Gallery block

Centered editorial gallery pairing category filter tabs, a responsive 3:2 architectural photography grid, and a keyboard-navigable lightbox dialog with camera metadata.

- Behavior engine: UI SDK
- Category: [Content](https://stylexblocks.com/blocks/content.md)
- Built with: [Aspect Ratio](https://stylexblocks.com/components/ui-sdk/aspect-ratio.md), [Badge](https://stylexblocks.com/components/ui-sdk/badge.md), [Button](https://stylexblocks.com/components/ui-sdk/button.md), [Dialog](https://stylexblocks.com/components/ui-sdk/dialog.md), [Grid](https://stylexblocks.com/components/ui-sdk/grid.md), [Heading](https://stylexblocks.com/components/ui-sdk/heading.md), [Icon](https://stylexblocks.com/components/ui-sdk/icon.md), [Icon Button](https://stylexblocks.com/components/ui-sdk/icon-button.md), [Kbd](https://stylexblocks.com/components/ui-sdk/kbd.md), [Section](https://stylexblocks.com/components/ui-sdk/section.md), [Separator](https://stylexblocks.com/components/ui-sdk/separator.md), [Stack](https://stylexblocks.com/components/ui-sdk/stack.md), [Tabs](https://stylexblocks.com/components/ui-sdk/tabs.md), [Text](https://stylexblocks.com/components/ui-sdk/text.md)
- HTML page: https://stylexblocks.com/block/ui-sdk/classic-gallery/

## Install

Configure the project once (sets the behavior engine and import aliases):

```sh
npx stylexblocks init --style ui-sdk
```

Then add the item as source you own:

```sh
npx stylexblocks add classic-gallery
```

Equivalent: `npx shadcn add @stylexblocks/classic-gallery`. Registry item JSON: https://stylexblocks.com/r/ui-sdk/classic-gallery.json

## Usage

```tsx
import { ClassicGallery } from "#components/blocks/ui-sdk/classic-gallery.tsx";

export function Example() {
  return (
    <div style={{ minHeight: "100dvh" }}>
      <ClassicGallery />
    </div>
  );
}
```

## Source

`components/blocks/ui-sdk/classic-gallery.tsx`

```tsx
import * as stylex from "@stylexjs/stylex";
import { useCallback, useEffect, useMemo, useState } from "react";
import { AspectRatio } from "#components/ui/ui-sdk/aspect-ratio.tsx";
import { Badge } from "#components/ui/ui-sdk/badge.tsx";
import { Button } from "#components/ui/ui-sdk/button.tsx";
import { Dialog } from "#components/ui/ui-sdk/dialog.tsx";
import { Grid } from "#components/ui/ui-sdk/grid.tsx";
import { Heading } from "#components/ui/ui-sdk/heading.tsx";
import { Icon } from "#components/ui/ui-sdk/icon.tsx";
import { IconButton } from "#components/ui/ui-sdk/icon-button.tsx";
import { Kbd } from "#components/ui/ui-sdk/kbd.tsx";
import { Section } from "#components/ui/ui-sdk/section.tsx";
import { Separator } from "#components/ui/ui-sdk/separator.tsx";
import { HStack, VStack } from "#components/ui/ui-sdk/stack.tsx";
import { Tabs } from "#components/ui/ui-sdk/tabs.tsx";
import { Text } from "#components/ui/ui-sdk/text.tsx";
import { semanticColors } from "@stylexblocks/ui/semantic-tokens/colors.stylex.ts";
import { semanticRadii } from "@stylexblocks/ui/semantic-tokens/radii.stylex.ts";
import { semanticShadows } from "@stylexblocks/ui/semantic-tokens/shadows.stylex.ts";
import { durations } from "@stylexblocks/ui/tokens/durations.stylex.ts";
import { fonts } from "@stylexblocks/ui/tokens/fonts.stylex.ts";
import { lineHeights } from "@stylexblocks/ui/tokens/line-heights.stylex.ts";
import { spacing } from "@stylexblocks/ui/tokens/spacing.stylex.ts";
import type { StyleOverrideProps } from "#lib/recipe-props.ts";

export type GalleryCategory = "all" | "pavilions" | "interiors" | "light-studies";

export interface GalleryItem {
  id: string;
  plate: string;
  title: string;
  category: Exclude<GalleryCategory, "all">;
  categoryLabel: string;
  location: string;
  year: string;
  camera: string;
  exposure: string;
  notes: string;
  src: string;
  alt: string;
}

// ─── Default Gallery Data ───────────────────────────────────────────────────

const CATEGORY_TABS: ReadonlyArray<{ value: GalleryCategory; label: string }> = [
  { value: "all", label: "All" },
  { value: "pavilions", label: "Pavilions" },
  { value: "interiors", label: "Interiors" },
  { value: "light-studies", label: "Light Studies" },
];

export const DEFAULT_GALLERY_ITEMS: ReadonlyArray<GalleryItem> = [
  {
    id: "skagerrak-pavilion",
    plate: "Plate 01",
    title: "Skagerrak Horizon Pavilion",
    category: "pavilions",
    categoryLabel: "Pavilions",
    location: "Skagen, Denmark",
    year: "2026",
    camera: "Hasselblad 907X · 55mm f/2.5V",
    exposure: "f/8 · 1/60s · ISO 64",
    notes:
      "Board-formed concrete cantilevered above the northern headland, calibrated so twilight sea reflections align with the recessed cedar ribbon window.",
    src: "/images/blocks/classic-gallery/skagerrak-pavilion.webp",
    alt: "Cantilevered concrete coastal pavilion glowing warmly above a calm dusk sea in Skagen",
  },
  {
    id: "basalt-sea-bathhouse",
    plate: "Plate 02",
    title: "Basalt Tidal Bathhouse",
    category: "pavilions",
    categoryLabel: "Pavilions",
    location: "Vík, Iceland",
    year: "2025",
    camera: "Alpa 12 STC · Rodenstock 40mm HR",
    exposure: "f/11 · 1/15s · ISO 50",
    notes:
      "Twin cut-basalt windbreak walls shelter a geothermal saltwater basin, framing low North Atlantic mist and drifting vapor against dark volcanic stone.",
    src: "/images/blocks/classic-gallery/basalt-sea-bathhouse.webp",
    alt: "Minimalist dark basalt sea bathhouse walls enclosing a steaming coastal tidal pool in mist",
  },
  {
    id: "gotland-lime-atrium",
    plate: "Plate 03",
    title: "Lime Plaster & Pine Atrium",
    category: "interiors",
    categoryLabel: "Interiors",
    location: "Fårö, Sweden",
    year: "2026",
    camera: "Leica SL3 · 35mm APO-Summicron",
    exposure: "f/5.6 · 1/125s · ISO 100",
    notes:
      "Hand-troweled Gotland lime plaster diffuses low Baltic afternoon sun across wide-plank Douglas fir floors and a single stoneware study bench.",
    src: "/images/blocks/classic-gallery/gotland-lime-atrium.webp",
    alt: "Sunlit Nordic lime-plaster interior with tall timber window casting diagonal light across wood floors",
  },
  {
    id: "solstice-clerestory",
    plate: "Plate 04",
    title: "Solstice Clerestory Rhythm",
    category: "light-studies",
    categoryLabel: "Light Studies",
    location: "Aarhus, Denmark",
    year: "2025",
    camera: "Hasselblad X2D 100C · 38mm f/2.5V",
    exposure: "f/9 · 1/250s · ISO 64",
    notes:
      "Five deep precast acoustic baffles slice midday solstice sunlight into measured diagonal bands across a matte travertine gallery wall.",
    src: "/images/blocks/classic-gallery/solstice-clerestory.webp",
    alt: "Five parallel shafts of warm sunlight descending from concrete clerestory skylights onto a stone wall",
  },
  {
    id: "reinefjorden-boathouse",
    plate: "Plate 05",
    title: "Reinefjorden Timber Boathouse",
    category: "pavilions",
    categoryLabel: "Pavilions",
    location: "Lofoten, Norway",
    year: "2025",
    camera: "Fujifilm GFX 100 II · 45mm f/2.8",
    exposure: "f/8 · 1/160s · ISO 80",
    notes:
      "Charred Siberian larch cladding set on slender granite pilings mirrors the steep snow-ribbed peaks across still fjord water at slack tide.",
    src: "/images/blocks/classic-gallery/reinefjorden-boathouse.webp",
    alt: "Dark charred-timber gabled boathouse on pilings over a calm Norwegian fjord backed by snow-dusted peaks",
  },
  {
    id: "torshavn-blue-hour-alcove",
    plate: "Plate 06",
    title: "Reading Alcove at Blue Hour",
    category: "interiors",
    categoryLabel: "Interiors",
    location: "Tórshavn, Faroe Islands",
    year: "2026",
    camera: "Leica M11 · 50mm Summilux",
    exposure: "f/4 · 1/30s · ISO 200",
    notes:
      "A deep oiled-oak window reveal turns a thick storm wall into a quiet reading nook, balancing warm indirect cove light against cold Atlantic twilight.",
    src: "/images/blocks/classic-gallery/torshavn-blue-hour-alcove.webp",
    alt: "Deep oak-lined window alcove looking out onto a deep blue-hour Faroese fjord sky",
  },
  {
    id: "bornholm-dawn-breakwater",
    plate: "Plate 07",
    title: "Dawn Mist & Linear Breakwater",
    category: "light-studies",
    categoryLabel: "Light Studies",
    location: "Bornholm, Denmark",
    year: "2025",
    camera: "Alpa 12 Max · Schneider 60mm XL",
    exposure: "f/11 · 1/4s · ISO 50",
    notes:
      "At first light, sea fog dissolves the boundary between sky and Baltic water, leaving only the receding concrete axis of the harbor jetty.",
    src: "/images/blocks/classic-gallery/bornholm-dawn-breakwater.webp",
    alt: "Minimalist concrete jetty receding into pale rose dawn sea mist over calm Baltic water",
  },
  {
    id: "jutland-driftwood-chapel",
    plate: "Plate 08",
    title: "Weathered Cedar Heath Chapel",
    category: "pavilions",
    categoryLabel: "Pavilions",
    location: "West Jutland, Denmark",
    year: "2026",
    camera: "Hasselblad 907X · 38mm f/2.5V",
    exposure: "f/8 · 1/200s · ISO 64",
    notes:
      "An asymmetric silvered-cedar sanctuary tucked into coastal marram dunes, marked from afar by a single vertical brass-toned sanctuary slit.",
    src: "/images/blocks/classic-gallery/jutland-driftwood-chapel.webp",
    alt: "Asymmetric weathered cedar chapel silhouette on coastal dunes with a warm glowing vertical light slit",
  },
  {
    id: "visby-limestone-stair",
    plate: "Plate 09",
    title: "Oculus & Limestone Stairwell",
    category: "interiors",
    categoryLabel: "Interiors",
    location: "Visby, Sweden",
    year: "2025",
    camera: "Leica SL3 · 28mm Summilux",
    exposure: "f/6.3 · 1/80s · ISO 100",
    notes:
      "Zenithal light from an unframed roof oculus traces the sculptural curve of honed limestone treads and a continuous steamed-oak handrail.",
    src: "/images/blocks/classic-gallery/visby-limestone-stair.webp",
    alt: "Curved monolithic limestone stairwell illuminated from above by a circular roof oculus",
  },
  {
    id: "tromso-polar-twilight",
    plate: "Plate 10",
    title: "Polar Twilight Observation Frame",
    category: "light-studies",
    categoryLabel: "Light Studies",
    location: "Tromsø, Norway",
    year: "2026",
    camera: "Fujifilm GFX 100 II · 55mm f/1.7",
    exposure: "f/4 · 1/8s · ISO 160",
    notes:
      "During the brief arctic civil twilight, a blackened steel viewing portal frames faint emerald upper-atmosphere veils mirrored in the glassy sound.",
    src: "/images/blocks/classic-gallery/tromso-polar-twilight.webp",
    alt: "Minimalist dark steel coastal viewing frame silhouetted against rose and ultramarine arctic twilight reflections",
  },
];

// ─── Styles ─────────────────────────────────────────────────────────────────

const styles = stylex.create({
  root: {
    backgroundColor: semanticColors.bg,
    color: semanticColors.fg,
    fontFamily: fonts.body,
    minHeight: "100%",
    overflowY: "auto",
    paddingBlock: {
      default: spacing._12,
      "@media (max-width: 640px)": spacing._8,
    },
    paddingInline: {
      default: spacing._6,
      "@media (max-width: 640px)": spacing._4,
    },
    width: "100%",
  },
  content: {
    maxWidth: "75rem",
    width: "100%",
  },
  tabsRoot: {
    display: "flex",
    flexDirection: "column",
    gap: spacing._8,
    width: "100%",
  },
  header: {
    marginInline: "auto",
    maxWidth: "44rem",
    textAlign: "center",
    width: "100%",
  },
  headline: {
    marginBlock: 0,
    maxWidth: "22ch",
    textAlign: "center",
    textWrap: "balance",
  },
  description: {
    lineHeight: lineHeights.lg,
    maxWidth: "56ch",
    textWrap: "balance",
  },
  tabBarRow: {
    maxWidth: "100%",
  },
  tabList: {
    flexWrap: "wrap",
    justifyContent: "center",
    maxWidth: "100%",
  },
  gallerySection: {
    width: "100%",
  },
  tabPanel: {
    paddingBlock: 0,
    paddingInline: 0,
    width: "100%",
  },
  grid: {
    gridTemplateColumns: {
      default: "repeat(3, minmax(0, 1fr))",
      "@media (max-width: 960px)": "repeat(2, minmax(0, 1fr))",
      "@media (max-width: 600px)": "minmax(0, 1fr)",
    },
    width: "100%",
  },
  cardButton: {
    "--card-img-scale": {
      default: "1",
      ":hover": "1.035",
      ":focus-visible": "1.035",
    },
    appearance: "none",
    backgroundColor: semanticColors.bgSurface,
    borderColor: {
      default: semanticColors.border,
      ":hover": semanticColors.borderEmphasized,
      ":focus-visible": semanticColors.accentBorder,
    },
    borderRadius: semanticRadii.panel,
    borderStyle: "solid",
    borderWidth: "1px",
    boxShadow: {
      default: semanticShadows.xs,
      ":hover": semanticShadows.md,
    },
    color: "inherit",
    cursor: "pointer",
    display: "flex",
    flexDirection: "column",
    fontFamily: "inherit",
    outlineColor: {
      default: null,
      ":focus-visible": semanticColors.accentFocusRing,
    },
    outlineOffset: {
      default: null,
      ":focus-visible": "2px",
    },
    outlineStyle: {
      default: null,
      ":focus-visible": "solid",
    },
    outlineWidth: {
      default: null,
      ":focus-visible": "2px",
    },
    overflow: "hidden",
    paddingBlock: 0,
    paddingInline: 0,
    textAlign: "left",
    transform: {
      default: "translateY(0px)",
      ":hover": "translateY(-2px)",
    },
    transitionDuration: durations.moderate,
    transitionProperty: "border-color, box-shadow, transform",
    transitionTimingFunction: "cubic-bezier(0.2, 0, 0, 1)",
    width: "100%",
  },
  imageFrame: {
    backgroundColor: semanticColors.bgMuted,
  },
  cardImage: {
    display: "block",
    height: "100%",
    objectFit: "cover",
    transform: "scale(var(--card-img-scale, 1))",
    transitionDuration: durations.slow,
    transitionProperty: "transform",
    transitionTimingFunction: "cubic-bezier(0.2, 0, 0, 1)",
    width: "100%",
  },
  plateTag: {
    backgroundColor: semanticColors.bgOverlay,
    borderColor: semanticColors.borderSubtle,
    borderRadius: semanticRadii.indicatorSm,
    borderStyle: "solid",
    borderWidth: "1px",
    left: spacing._3,
    paddingBlock: spacing._0_5,
    paddingInline: spacing._1_5,
    position: "absolute",
    top: spacing._3,
  },
  cardMeta: {
    paddingBlock: spacing._3,
    paddingInline: spacing._3_5,
    width: "100%",
  },
  cardYear: {
    flexShrink: 0,
  },
  // Lightbox dialog styles
  dialogContent: {
    borderColor: semanticColors.border,
    borderStyle: "solid",
    borderWidth: "1px",
    maxWidth: "min(56rem, calc(100vw - 2rem))",
    overflow: "hidden",
    width: "calc(100% - 2rem)",
  },
  dialogHeader: {
    alignItems: "flex-start",
    display: "flex",
    gap: spacing._4,
    justifyContent: "space-between",
    paddingBlock: spacing._4,
    paddingInline: spacing._5,
  },
  dialogCloseButton: {
    position: "static",
    right: "auto",
    top: "auto",
  },
  dialogBody: {
    display: "flex",
    flexDirection: "column",
    gap: spacing._4,
    paddingBlock: 0,
    paddingInline: spacing._5,
  },
  lightboxStage: {
    backgroundColor: semanticColors.bgMuted,
    borderColor: semanticColors.borderSubtle,
    borderRadius: semanticRadii.panel,
    borderStyle: "solid",
    borderWidth: "1px",
  },
  lightboxImage: {
    display: "block",
    height: "100%",
    objectFit: "cover",
    width: "100%",
  },
  lightboxMetaGrid: {
    gridTemplateColumns: {
      default: "minmax(0, 1.4fr) minmax(0, 1fr)",
      "@media (max-width: 680px)": "minmax(0, 1fr)",
    },
    paddingBottom: spacing._4,
  },
  lightboxNotes: {
    lineHeight: lineHeights.md,
    marginBlock: 0,
  },
  specList: {
    marginBlock: 0,
  },
  specValue: {
    marginInlineStart: 0,
  },
  dialogFooter: {
    alignItems: "center",
    display: "flex",
    flexWrap: "wrap",
    gap: spacing._3,
    justifyContent: "space-between",
    paddingBlock: spacing._3_5,
    paddingInline: spacing._5,
  },
  counterText: {
    minWidth: "4.5rem",
  },
  kbdHints: {
    display: {
      default: "inline-flex",
      "@media (max-width: 640px)": "none",
    },
  },
});

export interface ClassicGalleryProps extends StyleOverrideProps {
  /** Optional eyebrow pill displayed above the gallery heading. */
  eyebrow?: string;
  /** Primary display heading for the gallery. */
  title?: string;
  /** Supporting curatorial introduction below the heading. */
  description?: string;
  /** Initial active category filter tab. */
  defaultCategory?: GalleryCategory;
  /** Custom gallery plates; defaults to the Nordic Coastal Architecture & Light Study series. */
  items?: ReadonlyArray<GalleryItem>;
  /** Called when a gallery plate is opened in the lightbox. */
  onSelectItem?: (item: GalleryItem) => void;
}

/**
 * ClassicGallery — centered editorial photography gallery with a category tab
 * filter, responsive 3:2 plate grid, and keyboard-navigable lightbox dialog
 * showing location notes and camera metadata.
 */
export function ClassicGallery({
  eyebrow = "Monograph 09 · North Atlantic Studies",
  title = "Architecture shaped by northern coastal light",
  description = "Ten field plates documenting basalt cliff pavilions, lime-plaster sanctuaries, and solstice light studies across the Lofoten, Faroe, and Baltic shores.",
  defaultCategory = "all",
  items = DEFAULT_GALLERY_ITEMS,
  onSelectItem,
  palette,
  style,
}: ClassicGalleryProps) {
  const [category, setCategory] = useState<GalleryCategory>(defaultCategory);
  const [activeId, setActiveId] = useState<string | null>(null);

  const filteredItems = useMemo(
    () =>
      category === "all"
        ? items
        : items.filter((item) => item.category === category),
    [category, items],
  );

  const activeIndex = useMemo(
    () =>
      activeId === null
        ? -1
        : filteredItems.findIndex((item) => item.id === activeId),
    [activeId, filteredItems],
  );

  const activeItem = activeIndex >= 0 ? filteredItems[activeIndex] : null;

  const handleOpenItem = useCallback(
    (item: GalleryItem) => {
      setActiveId(item.id);
      onSelectItem?.(item);
    },
    [onSelectItem],
  );

  const handleStep = useCallback(
    (delta: -1 | 1) => {
      if (filteredItems.length <= 1 || activeIndex < 0) return;
      const nextIndex =
        (activeIndex + delta + filteredItems.length) % filteredItems.length;
      const nextItem = filteredItems[nextIndex];
      if (nextItem) {
        setActiveId(nextItem.id);
        onSelectItem?.(nextItem);
      }
    },
    [activeIndex, filteredItems, onSelectItem],
  );

  const handleCategoryChange = useCallback((nextValue: GalleryCategory) => {
    setCategory(nextValue);
    setActiveId(null);
  }, []);

  useEffect(() => {
    if (!activeItem) return;
    const handleKeyDown = (event: KeyboardEvent) => {
      if (event.key === "ArrowLeft") {
        event.preventDefault();
        handleStep(-1);
      } else if (event.key === "ArrowRight") {
        event.preventDefault();
        handleStep(1);
      }
    };
    window.addEventListener("keydown", handleKeyDown);
    return () => window.removeEventListener("keydown", handleKeyDown);
  }, [activeItem, handleStep]);

  const countsByCategory = useMemo(() => {
    const counts: Record<GalleryCategory, number> = {
      all: items.length,
      pavilions: 0,
      interiors: 0,
      "light-studies": 0,
    };
    for (const item of items) {
      counts[item.category] += 1;
    }
    return counts;
  }, [items]);

  return (
    <VStack align="center" gap="0" palette={palette} style={[styles.root, style]}>
      <VStack render={<main />} gap="8" style={styles.content}>
        <Tabs.Root
          value={category}
          onValueChange={handleCategoryChange}
          variant="enclosed"
          size="sm"
          style={styles.tabsRoot}
        >
          <VStack render={<header />} align="center" gap="5" style={styles.header}>
            <VStack align="center" gap="3">
              {eyebrow ? (
                <Badge variant="subtle" size="md">
                  {eyebrow}
                </Badge>
              ) : null}
              <Heading render={<h1 />} size="5xl" style={styles.headline}>
                {title}
              </Heading>
              <Text
                variant="muted"
                size="md"
                align="center"
                style={styles.description}
              >
                {description}
              </Text>
            </VStack>

            <VStack align="center" gap="2" style={styles.tabBarRow}>
              <Tabs.List
                aria-label="Filter gallery plates by category"
                style={styles.tabList}
              >
                {CATEGORY_TABS.map((tab) => (
                  <Tabs.Tab key={tab.value} value={tab.value}>
                    <span>{tab.label}</span>
                    <Text
                      render={<span />}
                      variant="subtle"
                      size="xs"
                      tabular="true"
                    >
                      {countsByCategory[tab.value]}
                    </Text>
                  </Tabs.Tab>
                ))}
              </Tabs.List>
            </VStack>
          </VStack>

          <Section.Root
            aria-label="Nordic coastal architecture gallery"
            style={styles.gallerySection}
          >
            <Section.Body>
              {CATEGORY_TABS.map((tab) => {
                const panelItems =
                  tab.value === "all"
                    ? items
                    : items.filter((item) => item.category === tab.value);

                return (
                  <Tabs.Panel
                    key={tab.value}
                    value={tab.value}
                    style={styles.tabPanel}
                  >
                    <Grid gap="5" style={styles.grid}>
                      {panelItems.map((item) => (
                        <button
                          key={item.id}
                          type="button"
                          onClick={() => handleOpenItem(item)}
                          aria-label={`Inspect ${item.title} (${item.location})`}
                          {...stylex.props(styles.cardButton)}
                        >
                          <AspectRatio
                            render={<span />}
                            ratio="3/2"
                            rounded="none"
                            style={styles.imageFrame}
                          >
                            <img
                              src={item.src}
                              alt={item.alt}
                              loading="lazy"
                              {...stylex.props(styles.cardImage)}
                            />
                            <Text
                              render={<span />}
                              variant="mono"
                              size="2xs"
                              tabular="true"
                              style={styles.plateTag}
                            >
                              {item.plate}
                            </Text>
                          </AspectRatio>

                          <VStack render={<span />} gap="1" style={styles.cardMeta}>
                            <HStack
                              render={<span />}
                              align="baseline"
                              gap="2"
                              justify="between"
                            >
                              <Text
                                render={<span />}
                                variant="label"
                                size="sm"
                                truncate="true"
                              >
                                {item.title}
                              </Text>
                              <Text
                                render={<span />}
                                variant="mono"
                                size="xs"
                                tone="subtle"
                                tabular="true"
                                style={styles.cardYear}
                              >
                                {item.year}
                              </Text>
                            </HStack>
                            <Text
                              render={<span />}
                              variant="caption"
                              truncate="true"
                            >
                              {item.location}
                            </Text>
                          </VStack>
                        </button>
                      ))}
                    </Grid>
                  </Tabs.Panel>
                );
              })}
            </Section.Body>
          </Section.Root>
        </Tabs.Root>
      </VStack>

      <Dialog.Root
        open={activeItem !== null}
        onOpenChange={(nextOpen) => {
          if (!nextOpen) setActiveId(null);
        }}
        size="xl"
        placement="center"
      >
        <Dialog.Backdrop />
        <Dialog.Content style={styles.dialogContent}>
          {activeItem ? (
            <>
              <Dialog.Header style={styles.dialogHeader}>
                <VStack gap="1.5">
                  <HStack wrap="wrap" gap="2">
                    <Badge variant="subtle" size="sm">
                      {activeItem.plate}
                    </Badge>
                    <Badge variant="outline" size="sm">
                      {activeItem.categoryLabel}
                    </Badge>
                  </HStack>
                  <Dialog.Title>{activeItem.title}</Dialog.Title>
                </VStack>

                <Dialog.Close
                  render={
                    <IconButton
                      variant="ghost"
                      size="sm"
                      aria-label="Close lightbox"
                    />
                  }
                  style={styles.dialogCloseButton}
                >
                  <Icon
                    size="sm"
                    viewBox="0 0 20 20"
                    fill="none"
                    stroke="currentColor"
                    strokeWidth="1.75"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                    aria-hidden="true"
                  >
                    <path d="M5 5l10 10" />
                    <path d="M15 5 5 15" />
                  </Icon>
                </Dialog.Close>
              </Dialog.Header>

              <Dialog.Body style={styles.dialogBody}>
                <AspectRatio ratio="3/2" style={styles.lightboxStage}>
                  <img
                    src={activeItem.src}
                    alt={activeItem.alt}
                    {...stylex.props(styles.lightboxImage)}
                  />
                </AspectRatio>

                <Grid gap="4" style={styles.lightboxMetaGrid}>
                  <Dialog.Description style={styles.lightboxNotes}>
                    {activeItem.notes}
                  </Dialog.Description>

                  <Grid
                    render={<dl />}
                    columns="1"
                    gap="2"
                    style={styles.specList}
                  >
                    <HStack align="baseline" gap="3" justify="between">
                      <Text render={<dt />} variant="subtle" size="xs">
                        Location
                      </Text>
                      <Text
                        render={<dd />}
                        variant="mono"
                        size="xs"
                        align="end"
                        tabular="true"
                        style={styles.specValue}
                      >
                        {activeItem.location} · {activeItem.year}
                      </Text>
                    </HStack>
                    <HStack align="baseline" gap="3" justify="between">
                      <Text render={<dt />} variant="subtle" size="xs">
                        Camera
                      </Text>
                      <Text
                        render={<dd />}
                        variant="mono"
                        size="xs"
                        align="end"
                        tabular="true"
                        style={styles.specValue}
                      >
                        {activeItem.camera}
                      </Text>
                    </HStack>
                    <HStack align="baseline" gap="3" justify="between">
                      <Text render={<dt />} variant="subtle" size="xs">
                        Exposure
                      </Text>
                      <Text
                        render={<dd />}
                        variant="mono"
                        size="xs"
                        align="end"
                        tabular="true"
                        style={styles.specValue}
                      >
                        {activeItem.exposure}
                      </Text>
                    </HStack>
                  </Grid>
                </Grid>
              </Dialog.Body>

              <Separator decorative />

              <Dialog.Footer style={styles.dialogFooter}>
                <HStack gap="1.5" style={styles.kbdHints}>
                  <Kbd size="sm">←</Kbd>
                  <Kbd size="sm">→</Kbd>
                  <Text render={<span />} variant="subtle" size="xs">
                    Navigate plates
                  </Text>
                </HStack>

                <HStack gap="2">
                  <Button
                    variant="surface"
                    size="sm"
                    disabled={filteredItems.length <= 1}
                    onClick={() => handleStep(-1)}
                  >
                    <Icon
                      size="sm"
                      viewBox="0 0 20 20"
                      fill="none"
                      stroke="currentColor"
                      strokeWidth="1.75"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                      aria-hidden="true"
                    >
                      <path d="M12.5 5 7.5 10l5 5" />
                    </Icon>
                    Previous
                  </Button>

                  <Text
                    render={<span aria-live="polite" />}
                    variant="mono"
                    size="xs"
                    tone="muted"
                    align="center"
                    tabular="true"
                    style={styles.counterText}
                  >
                    {String(activeIndex + 1).padStart(2, "0")} /{" "}
                    {String(filteredItems.length).padStart(2, "0")}
                  </Text>

                  <Button
                    variant="surface"
                    size="sm"
                    disabled={filteredItems.length <= 1}
                    onClick={() => handleStep(1)}
                  >
                    Next
                    <Icon
                      size="sm"
                      viewBox="0 0 20 20"
                      fill="none"
                      stroke="currentColor"
                      strokeWidth="1.75"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                      aria-hidden="true"
                    >
                      <path d="M7.5 5l5 5-5 5" />
                    </Icon>
                  </Button>
                </HStack>
              </Dialog.Footer>
            </>
          ) : null}
        </Dialog.Content>
      </Dialog.Root>
    </VStack>
  );
}
```

Credit: Inspired by [Classic Gallery](https://astryx.atmeta.com/playground?template=classic-gallery) from Astryx (MIT License · Copyright (c) 2026 Meta Platforms, Inc.)
