> ## Documentation Index
> Fetch the complete documentation index at: https://docs.starfy.io/savvy-theme/llms.txt
> Use this file to discover all available pages before exploring further.

# Gallery

The **Gallery section** displays a grid of images or videos.

> [!NOTE]
>
> In the **Shopify Theme Editor**, choose **Sections**, add or select **Gallery** to edit its settings. Changes appear in the preview. Click **Save** to publish them.

## **Section settings**

#### **General settings**

This setting controls the overall width and appearance of the section.

* **Width:** Choose how wide the section appears within the page.
  * **Page:** Keep the section within the theme's page width.
  * **Fluid:** Expand the section to use more available horizontal space.
  * **Full:** Allow the section to span the full available width.
* **Color scheme:** Choose the color scheme used by the section. The available color schemes depend on the color schemes configured in Theme settings.

#### **Layout**

Layout controls how media items are arranged in the section, including the number of columns and the spacing between them.

* **Number of columns on desktop:** Control how many columns are displayed on desktop. Available options range from **2–6 columns**.
* **Number of columns on tablet:** Control how many columns are displayed on tablet devices. Available options range from **2–4 columns**. The number of columns on mobile is automatically calculated.
* **Column gap:** Control the horizontal spacing between columns in the gallery. Available options:
  * **None**
  * **2X small**
  * **Extra small**
  * **Small**
  * **Medium**
  * **Large**
  * **Extra large**
  * **2X large**

#### **Media cards**

Media cards control the appearance of each image or video in the gallery.

* **Aspect ratio:** Control the shape and proportions of the media displayed in each card. Available options:
  * **Adapt to media:** Uses the original media's proportions.
  * **Square (1:1):**
  * **Portrait (4:5)**
  * **Portrait (3:4)**
  * **Portrait (2:3)**
  * **Landscape (5:4)**
  * **Landscape (4:3)**
  * **Landscape (3:2)**

#### **Behavior**

Behavior controls how videos play and how customers navigate through the gallery on desktop and mobile devices.

* **Autoplay video:** Control whether videos in the gallery play automatically. When ***disabled***, the you can configure:
  * **Play video on hover:** Control whether a video starts playing when a visitor hovers over its media card.
* **Enable carousel on desktop:** Control whether the gallery can be browsed as a carousel on desktop. When enabled, the following settings become available:
  * **Show progress indicator:** Control whether a progress indicator is displayed for the carousel.
  * **Peek carousel:** Control whether a portion of the next media card is visible at the edge of the carousel.
  * **Auto-rotate:** Control whether the carousel advances automatically. When enabled, the following settings become available:
    * **Change every:** Control how frequently the carousel advances automatically. Available options range from **2–10 seconds**.
    * **Pause auto-rotation on hover:** Control whether automatic carousel movement pauses when a visitor hovers over the carousel.
  * **Transition speed:** Control how quickly the carousel transitions between media cards. Available options range from **200–2000ms**.
* **Enable swipe on mobile:** Control whether visitors can swipe through the gallery on mobile devices. When enabled, the following settings become available:
  * **Show navigation buttons on mobile:** Control whether navigation buttons are displayed on mobile devices.
  * **Show progress indicator:** Controls whether a progress indicator is displayed for the mobile carousel.
  * **Peek carousel:** Control whether a portion of the next media card is visible at the edge of the carousel on mobile.
  * **Auto-rotate:** Control whether the mobile carousel advances automatically. When enabled, the following settings become available.
  * **Transition speed:** Control how quickly the mobile carousel transitions between media cards. Available options range from **200–2000ms**.

#### **Section padding**

Section padding controls the amount of space above and below the Shoppable gallery section.

* **Top:** Control the space above the section on desktop.
* **Bottom:** Control the space below the section on desktop.
* **Mobile top:** Control the space above the section on mobile.
* **Mobile bottom:** Control the space below the section on mobile.

Desktop padding values range from **0–120px**, while mobile padding values range from **0–80px**.

## **Block settings**

### **Section header**

Section header settings control the heading and supporting text displayed above the gallery.

* **Heading:** Add the main heading for the gallery.
* **Heading tag:** Choose the HTML heading level used for the heading, from **H1** through **H6**, **div**, **span** and **p**.
* **Heading size:** Control the visual size of the heading independently from its HTML heading tag. Available sizes range from **Large**, **Extra large**, **2X large** to **6X large**.
* **Subheading:** Add supporting text above the heading.
* **Description:** Enter additional text to explain the gallery or encourage visitors to explore the featured products.
* **Custom width:** Control the maximum width of the section header.
  * **Maximum width:** Choose from **200–1400px**.
* **Alignment:** Control the horizontal alignment of the section header content: **Left**, **Center**, or **Right**.

**Highlighted heading**

Highlighted heading lets you emphasize specific text in the section heading with a highlight effect.

* **Highlight effect:** Choose the effect applied to the highlighted heading text. Available options include:
  * **None**
  * **Underline**
  * **Maker**
  * **Tilt**
  * **Outline**
  * **Block**
  * **Brush**
  * **Tape**
* **Highlight tag:** Choose which text in the heading should receive the highlight effect based on the text's formatting tag: **Bold**, **Italic**, or **Link**.
* **Highlight color:** Choose the effect color used for the highlighted text.
* **Highlight text color:** Choose the color for the highlighted text. Clear this setting to inherit the color scheme. For partial backgrounds, only the covered text uses this color.
* **Remove original text formatting:** Removes bold, italic, and link underline from highlighted text while preserving the original HTML tag.

### **Block group**

The Button group block controls how multiple buttons are displayed within the section header.

* **Fill available width:** Make buttons grow to fill the available space. This setting works only when there is **more than one button** and automatically makes the buttons equal in width whenever possible.

#### **Button**

The Button block lets you add a call-to-action button to the section header. You can add multiple Button blocks when you want to provide more than one action.

* **Label:** Set the text displayed on the button.
* **Link:** Set the destination of the button.
* **Open in new tab:** Open the destination in a new browser tab.
* **Button style:** Choose **Solid**, **Outline**, or **Link**.
* **Minimum width:** Set the minimum width of the button. Set the value to **0** to use automatic width. This setting does not apply to the **Link** style, and the button width is automatically optimized on mobile.

### **Media card**

Media card block controls the image or video displayed in each gallery item.

**Media type:** Choose the type of media displayed in the gallery item: **Image** or **Video**.

* When **Image** is selected, you can choose:
  * **Image:** Select the main image displayed on desktop.
  * **Mobile image:** Select a separate image for mobile devices.
* When **Video** is selected, you can choose:
  * **Video:** Select the video to display.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.