# Lightbox

A fullscreen gallery dialog built on the carousel.

Source: https://www.zazz.sh/api/primitives/lightbox/

## Installation

```bash
pnpm dlx zazz-ui add lightbox
```

Also adds `fields`, `kbd`, `button`, `dialog`, `carousel`, which it depends on.

Run `zazz-ui init` first if the project has no `zazz/` folder yet.

## Examples

### Default

```html
<ui-lightbox
  style="
    --mx: auto;
    --max-w: var(--article-sm);
  "
>
  <div data-lightbox-slot="gallery">
    <ui-carousel data-lightbox-slot="stage" data-carousel-loop="true">
      <div data-carousel-slot="viewport">
        <div data-carousel-slot="container">
          <button
            data-lightbox-slot="slide"
            data-carousel-slot="slide"
            type="button"
            command="show-modal"
            commandfor="lightbox-example-1"
          >
            <figure data-lightbox-slot="content">
              <img
                sizes="(max-width: 40rem) 100vw, 800px"
                src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&h=600&fit=crop"
                srcset="
                  https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=456&h=342&fit=crop 456w,
                  https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&h=600&fit=crop 800w
                "
                alt="Mountain landscape"
              />
            </figure>
          </button>
          <button
            data-lightbox-slot="slide"
            data-carousel-slot="slide"
            type="button"
            command="show-modal"
            commandfor="lightbox-example-1"
          >
            <figure data-lightbox-slot="content">
              <img
                sizes="(max-width: 40rem) 100vw, 800px"
                src="https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=800&h=600&fit=crop"
                srcset="
                  https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=456&h=342&fit=crop 456w,
                  https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=800&h=600&fit=crop 800w
                "
                alt="Valley with sunlight"
              />
            </figure>
          </button>
          <button
            data-lightbox-slot="slide"
            data-carousel-slot="slide"
            type="button"
            command="show-modal"
            commandfor="lightbox-example-1"
          >
            <figure data-lightbox-slot="content">
              <img
                sizes="(max-width: 40rem) 100vw, 800px"
                src="https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=800&h=600&fit=crop"
                srcset="
                  https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=456&h=342&fit=crop 456w,
                  https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=800&h=600&fit=crop 800w
                "
                alt="Forest path"
              />
            </figure>
          </button>
          <button
            data-lightbox-slot="slide"
            data-carousel-slot="slide"
            type="button"
            command="show-modal"
            commandfor="lightbox-example-1"
          >
            <figure data-lightbox-slot="content">
              <img
                sizes="(max-width: 40rem) 100vw, 800px"
                src="https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=800&h=600&fit=crop"
                srcset="
                  https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=456&h=342&fit=crop 456w,
                  https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=800&h=600&fit=crop 800w
                "
                alt="Waterfall in forest"
              />
            </figure>
          </button>
          <button
            data-lightbox-slot="slide"
            data-carousel-slot="slide"
            type="button"
            command="show-modal"
            commandfor="lightbox-example-1"
          >
            <figure data-lightbox-slot="content">
              <img
                sizes="(max-width: 40rem) 100vw, 800px"
                src="https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=800&h=600&fit=crop"
                srcset="
                  https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=456&h=342&fit=crop 456w,
                  https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=800&h=600&fit=crop 800w
                "
                alt="Lake at sunset"
              />
            </figure>
          </button>
          <button
            data-lightbox-slot="slide"
            data-carousel-slot="slide"
            type="button"
            command="show-modal"
            commandfor="lightbox-example-1"
          >
            <figure data-lightbox-slot="content">
              <img
                sizes="(max-width: 40rem) 100vw, 800px"
                src="https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=800&h=600&fit=crop"
                srcset="
                  https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=456&h=342&fit=crop 456w,
                  https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=800&h=600&fit=crop 800w
                "
                alt="Foggy forest"
              />
            </figure>
          </button>
        </div>
      </div>
      <div data-lightbox-slot="thumbs" data-carousel-slot="thumbs" data-carousel-loop="true">
        <button
          data-ui="button"
          data-lightbox-slot="thumbs-prev"
          data-carousel-slot="prev"
          data-button-size="icon-sm"
          data-button-variant="ghost"
          type="button"
          aria-label="Previous image"
          style="
            --text: var(--color-muted-foreground);
            --text--hover: var(--color-foreground);
          "
        >
          <svg
            xmlns="http://www.w3.org/2000/svg"
            viewBox="0 0 256 256"
            aria-hidden="true"
            style="--size: 4"
          >
            <rect width="256" height="256" fill="none" />
            <polyline
              points="160 208 80 128 160 48"
              fill="none"
              stroke="currentColor"
              stroke-linecap="round"
              stroke-linejoin="round"
              stroke-width="14"
            />
          </svg>
        </button>
        <div data-carousel-slot="viewport">
          <div data-carousel-slot="container">
            <button
              type="button"
              data-lightbox-slot="thumb"
              data-carousel-slot="slide"
              aria-label="Show image 1"
            >
              <figure data-lightbox-slot="thumb-content">
                <img
                  sizes="auto"
                  loading="lazy"
                  width="228"
                  height="171"
                  src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=228&h=171&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=228&h=171&fit=crop 228w,
                    https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=456&h=342&fit=crop 456w
                  "
                  alt="Mountain landscape"
                />
              </figure>
            </button>
            <button
              type="button"
              data-lightbox-slot="thumb"
              data-carousel-slot="slide"
              aria-label="Show image 2"
            >
              <figure data-lightbox-slot="thumb-content">
                <img
                  sizes="auto"
                  loading="lazy"
                  width="228"
                  height="171"
                  src="https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=228&h=171&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=228&h=171&fit=crop 228w,
                    https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=456&h=342&fit=crop 456w
                  "
                  alt="Valley with sunlight"
                />
              </figure>
            </button>
            <button
              type="button"
              data-lightbox-slot="thumb"
              data-carousel-slot="slide"
              aria-label="Show image 3"
            >
              <figure data-lightbox-slot="thumb-content">
                <img
                  sizes="auto"
                  loading="lazy"
                  width="228"
                  height="171"
                  src="https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=228&h=171&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=228&h=171&fit=crop 228w,
                    https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=456&h=342&fit=crop 456w
                  "
                  alt="Forest path"
                />
              </figure>
            </button>
            <button
              type="button"
              data-lightbox-slot="thumb"
              data-carousel-slot="slide"
              aria-label="Show image 4"
            >
              <figure data-lightbox-slot="thumb-content">
                <img
                  sizes="auto"
                  loading="lazy"
                  width="228"
                  height="171"
                  src="https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=228&h=171&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=228&h=171&fit=crop 228w,
                    https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=456&h=342&fit=crop 456w
                  "
                  alt="Waterfall in forest"
                />
              </figure>
            </button>
            <button
              type="button"
              data-lightbox-slot="thumb"
              data-carousel-slot="slide"
              aria-label="Show image 5"
            >
              <figure data-lightbox-slot="thumb-content">
                <img
                  sizes="auto"
                  loading="lazy"
                  width="228"
                  height="171"
                  src="https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=228&h=171&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=228&h=171&fit=crop 228w,
                    https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=456&h=342&fit=crop 456w
                  "
                  alt="Lake at sunset"
                />
              </figure>
            </button>
            <button
              type="button"
              data-lightbox-slot="thumb"
              data-carousel-slot="slide"
              aria-label="Show image 6"
            >
              <figure data-lightbox-slot="thumb-content">
                <img
                  sizes="auto"
                  loading="lazy"
                  width="228"
                  height="171"
                  src="https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=228&h=171&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=228&h=171&fit=crop 228w,
                    https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=456&h=342&fit=crop 456w
                  "
                  alt="Foggy forest"
                />
              </figure>
            </button>
          </div>
        </div>
        <button
          data-ui="button"
          data-lightbox-slot="thumbs-next"
          data-carousel-slot="next"
          data-button-size="icon-sm"
          data-button-variant="ghost"
          type="button"
          aria-label="Next image"
          style="
            --text: var(--color-muted-foreground);
            --text--hover: var(--color-foreground);
          "
        >
          <svg
            xmlns="http://www.w3.org/2000/svg"
            viewBox="0 0 256 256"
            aria-hidden="true"
            style="--size: 4"
          >
            <rect width="256" height="256" fill="none" />
            <polyline
              points="96 48 176 128 96 208"
              fill="none"
              stroke="currentColor"
              stroke-linecap="round"
              stroke-linejoin="round"
              stroke-width="14"
            />
          </svg>
        </button>
      </div>
    </ui-carousel>
  </div>

  <dialog
    id="lightbox-example-1"
    data-ui="dialog"
    data-theme="dark"
    data-lightbox-slot="dialog"
    data-dialog-size="bleed"
    closedby="any"
  >
    <div data-dialog-slot="content">
      <ui-carousel data-carousel-loop="true">
        <div data-carousel-slot="viewport">
          <div data-carousel-slot="container">
            <div data-lightbox-slot="slide" data-carousel-slot="slide">
              <figure data-lightbox-slot="content">
                <img
                  sizes="(max-width: 40rem) 100vw, 800px"
                  src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&h=600&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=456&h=342&fit=crop 456w,
                    https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&h=600&fit=crop 800w
                  "
                  alt="Mountain landscape"
                />
              </figure>
            </div>
            <div data-lightbox-slot="slide" data-carousel-slot="slide">
              <figure data-lightbox-slot="content">
                <img
                  sizes="(max-width: 40rem) 100vw, 800px"
                  src="https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=800&h=600&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=456&h=342&fit=crop 456w,
                    https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=800&h=600&fit=crop 800w
                  "
                  alt="Valley with sunlight"
                />
              </figure>
            </div>
            <div data-lightbox-slot="slide" data-carousel-slot="slide">
              <figure data-lightbox-slot="content">
                <img
                  sizes="(max-width: 40rem) 100vw, 800px"
                  src="https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=800&h=600&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=456&h=342&fit=crop 456w,
                    https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=800&h=600&fit=crop 800w
                  "
                  alt="Forest path"
                />
              </figure>
            </div>
            <div data-lightbox-slot="slide" data-carousel-slot="slide">
              <figure data-lightbox-slot="content">
                <img
                  sizes="(max-width: 40rem) 100vw, 800px"
                  src="https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=800&h=600&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=456&h=342&fit=crop 456w,
                    https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=800&h=600&fit=crop 800w
                  "
                  alt="Waterfall in forest"
                />
              </figure>
            </div>
            <div data-lightbox-slot="slide" data-carousel-slot="slide">
              <figure data-lightbox-slot="content">
                <img
                  sizes="(max-width: 40rem) 100vw, 800px"
                  src="https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=800&h=600&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=456&h=342&fit=crop 456w,
                    https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=800&h=600&fit=crop 800w
                  "
                  alt="Lake at sunset"
                />
              </figure>
            </div>
            <div data-lightbox-slot="slide" data-carousel-slot="slide">
              <figure data-lightbox-slot="content">
                <img
                  sizes="(max-width: 40rem) 100vw, 800px"
                  src="https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=800&h=600&fit=crop"
                  srcset="
                    https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=456&h=342&fit=crop 456w,
                    https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=800&h=600&fit=crop 800w
                  "
                  alt="Foggy forest"
                />
              </figure>
            </div>
          </div>
        </div>
        <button
          data-ui="button"
          data-lightbox-slot="prev"
          data-carousel-slot="prev"
          data-button-size="icon"
          data-button-variant="ghost"
          type="button"
          aria-label="Previous image"
          style="
            --w: auto;
            --h: auto;
            --text: var(--color-muted-foreground);
            --text--hover: var(--color-foreground);
          "
        >
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" style="--size: 6">
            <rect width="256" height="256" fill="none" />
            <polyline
              points="160 208 80 128 160 48"
              fill="none"
              stroke="currentColor"
              stroke-linecap="round"
              stroke-linejoin="round"
              stroke-width="14"
            />
          </svg>
        </button>
        <button
          data-ui="button"
          data-lightbox-slot="next"
          data-carousel-slot="next"
          data-button-size="icon"
          data-button-variant="ghost"
          type="button"
          aria-label="Next image"
          style="
            --w: auto;
            --h: auto;
            --text: var(--color-muted-foreground);
            --text--hover: var(--color-foreground);
          "
        >
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" style="--size: 6">
            <rect width="256" height="256" fill="none" />
            <polyline
              points="96 48 176 128 96 208"
              fill="none"
              stroke="currentColor"
              stroke-linecap="round"
              stroke-linejoin="round"
              stroke-width="14"
            />
          </svg>
        </button>
        <div data-lightbox-slot="thumbs" data-carousel-slot="thumbs">
          <div data-carousel-slot="viewport">
            <div data-carousel-slot="container">
              <button
                type="button"
                data-lightbox-slot="thumb"
                data-carousel-slot="slide"
                aria-label="Show image 1"
              >
                <figure data-lightbox-slot="thumb-content">
                  <img
                    sizes="auto"
                    loading="lazy"
                    width="228"
                    height="171"
                    src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=228&h=171&fit=crop"
                    srcset="
                      https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=228&h=171&fit=crop 228w,
                      https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=456&h=342&fit=crop 456w
                    "
                    alt="Mountain landscape"
                  />
                </figure>
              </button>
              <button
                type="button"
                data-lightbox-slot="thumb"
                data-carousel-slot="slide"
                aria-label="Show image 2"
              >
                <figure data-lightbox-slot="thumb-content">
                  <img
                    sizes="auto"
                    loading="lazy"
                    width="228"
                    height="171"
                    src="https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=228&h=171&fit=crop"
                    srcset="
                      https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=228&h=171&fit=crop 228w,
                      https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=456&h=342&fit=crop 456w
                    "
                    alt="Valley with sunlight"
                  />
                </figure>
              </button>
              <button
                type="button"
                data-lightbox-slot="thumb"
                data-carousel-slot="slide"
                aria-label="Show image 3"
              >
                <figure data-lightbox-slot="thumb-content">
                  <img
                    sizes="auto"
                    loading="lazy"
                    width="228"
                    height="171"
                    src="https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=228&h=171&fit=crop"
                    srcset="
                      https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=228&h=171&fit=crop 228w,
                      https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=456&h=342&fit=crop 456w
                    "
                    alt="Forest path"
                  />
                </figure>
              </button>
              <button
                type="button"
                data-lightbox-slot="thumb"
                data-carousel-slot="slide"
                aria-label="Show image 4"
              >
                <figure data-lightbox-slot="thumb-content">
                  <img
                    sizes="auto"
                    loading="lazy"
                    width="228"
                    height="171"
                    src="https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=228&h=171&fit=crop"
                    srcset="
                      https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=228&h=171&fit=crop 228w,
                      https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=456&h=342&fit=crop 456w
                    "
                    alt="Waterfall in forest"
                  />
                </figure>
              </button>
              <button
                type="button"
                data-lightbox-slot="thumb"
                data-carousel-slot="slide"
                aria-label="Show image 5"
              >
                <figure data-lightbox-slot="thumb-content">
                  <img
                    sizes="auto"
                    loading="lazy"
                    width="228"
                    height="171"
                    src="https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=228&h=171&fit=crop"
                    srcset="
                      https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=228&h=171&fit=crop 228w,
                      https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=456&h=342&fit=crop 456w
                    "
                    alt="Lake at sunset"
                  />
                </figure>
              </button>
              <button
                type="button"
                data-lightbox-slot="thumb"
                data-carousel-slot="slide"
                aria-label="Show image 6"
              >
                <figure data-lightbox-slot="thumb-content">
                  <img
                    sizes="auto"
                    loading="lazy"
                    width="228"
                    height="171"
                    src="https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=228&h=171&fit=crop"
                    srcset="
                      https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=228&h=171&fit=crop 228w,
                      https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=456&h=342&fit=crop 456w
                    "
                    alt="Foggy forest"
                  />
                </figure>
              </button>
            </div>
          </div>
        </div>
      </ui-carousel>
    </div>
    <button
      data-ui="button"
      data-lightbox-slot="close"
      data-button-size="icon"
      data-button-variant="ghost"
      type="button"
      commandfor="lightbox-example-1"
      command="close"
      aria-label="Close lightbox"
    >
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
        <rect width="256" height="256" fill="none" />
        <line
          x1="200"
          y1="56"
          x2="56"
          y2="200"
          stroke="currentColor"
          stroke-linecap="round"
          stroke-linejoin="round"
          stroke-width="16"
        />
        <line
          x1="200"
          y1="200"
          x2="56"
          y2="56"
          stroke="currentColor"
          stroke-linecap="round"
          stroke-linejoin="round"
          stroke-width="16"
        />
      </svg>
    </button>
  </dialog>
</ui-lightbox>
```

A hovered or pressed stage image doesn't change. To dim it on hover, put `data-ui="group"` on each slide and `--group-filter--hover: brightness(0.8)` on its image.

## Behavior

`primitives/lightbox/lightbox.js`

`<ui-lightbox>` — HTML web component for lightbox galleries.
Light-DOM custom element that coordinates the two carousels in
a lightbox: the inline gallery and the fullscreen `<dialog>` slideshow.

Responsibilities (subscribing to `zazz:dialog-open` / `zazz:dialog-close`
from base/dialog-lifecycle.ts):
- On dialog open: initializes the dialog's `<ui-carousel>` (deferred
  while the dialog was closed), jumps it to the gallery's current slide,
  and focuses the viewport so keyboard navigation works immediately.
- On dialog close: scrolls the inline gallery to the last viewed slide.

Opening and closing the dialog itself needs no JavaScript — slides carry
`command="show-modal"` / `command="close"` (Invoker Commands). A mouse
drag on the stage or the thumbs never also clicks: the gesture layer
(base/gesture.js) swallows the click that ends a drag.

Events: `zazz:dialog-close`, `zazz:dialog-open`

## Attributes

| Attribute | Kind | Values |
| --- | --- | --- |
| `data-ui="lightbox"` | identity | free value |
| `<ui-lightbox>` | tag | free value |
| `data-lightbox-slot` | slot | `close` `content` `counter` `dialog` `gallery` `next` `prev` `slide` `stage` `thumb` `thumb-content` `thumbs` `thumbs-next` `thumbs-prev` |

Requires: dialog, carousel, button.

## Hooks

| Hook | Default | State |
| --- | --- | --- |
| `--ui-lightbox-aspect` | `3 / 2` | — |
| `--ui-lightbox-img-border` | `1px solid var(--color-faded)` | — |
| `--ui-lightbox-img-opacity` | `1` | — |
| `--ui-lightbox-img-scale` | `1` | — |
| `--ui-lightbox-img-scale--active` | `1` | active |
| `--ui-lightbox-img-scale--hover` | `1.03` | hover |
| `--ui-lightbox-img-transition-delay` | `0ms` | — |
| `--ui-lightbox-img-transition-duration` | `calc(var(--default-transition-duration) * 3)` | — |
| `--ui-lightbox-img-transition-property` | `transform` | — |
| `--ui-lightbox-img-transition-timing-function` | `var(--default-transition-timing-function)` | — |
| `--ui-lightbox-object-fit` | `cover` | — |
| `--ui-lightbox-slide-corner-shape` | `var(--radius-corner-shape)` | — |
| `--ui-lightbox-slide-opacity--end` | `1` | end |
| `--ui-lightbox-slide-opacity--start` | `0` | start |
| `--ui-lightbox-slide-radius` | `var(--radius-lg)` | — |
| `--ui-lightbox-slide-scale--end` | `1` | end |
| `--ui-lightbox-slide-scale--start` | `0.9` | start |
| `--ui-lightbox-thumb-cols` | `6` | — |
| `--ui-lightbox-thumb-corner-shape` | `var(--radius-corner-shape)` | — |
| `--ui-lightbox-thumb-gap` | `calc(var(--spacing) * 1.5)` | — |
| `--ui-lightbox-thumb-opacity` | `0.5` | — |
| `--ui-lightbox-thumb-opacity--active` | `1` | active |
| `--ui-lightbox-thumb-radius` | `var(--radius-md)` | — |
| `--ui-lightbox-thumb-size` | `calc(var(--spacing) * 16)` | — |
