# Gallery

A masonry or uniform-grid image gallery with click-to-enlarge lightbox. **Studio only.**

## How to access

Add the **DRIFT Gallery** section to any page in the customizer.

## Layout

### Layout style

Choose **Masonry** (preserves natural image ratios) or **Uniform grid** (all tiles match a chosen ratio).

### Image ratio (grid only)

Choose **Square (1:1)**, **Portrait (3:4)**, or **Landscape (4:3)**. Only applies to uniform grid layout.

### Columns — mobile

Range from 1 to 4. Default is 2.

### Columns — desktop

Range from 1 to 6. Default is 3.

### Gap between images

Range from 0 to 24 pixels in 4-pixel steps.

## Content

### Heading

Optional section heading.

## Blocks

Add **Image** blocks. Each block has:

* **Image** — The image to display.
* **Caption** — Optional text shown below the image and in the lightbox.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webexp.dev/drift/drift-studio/sections-and-features/gallery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
