Gallery

Build beautiful image and video galleries

The Gallery component in Elements allows you to build beautiful Galleries in a matter of seconds. Simple place the Gallery component into your site and drop on a folder images (or video).

Supported File Types

Galleries can contain a mixture of file types, including:

  • JPG

  • PNG

  • YouTube

  • Vimeo

  • .mp4

Resize and Compress Images for Best Results

Elements is designed to be flexible with image sizes, but for best results in galleries, we recommend using images that are at least 1200px wide for modern displays. This ensures your gallery looks sharp on all devices.

For batch resizing and compressing images we recommend Squash for macOS.

Component Settings

Media

Drop a folder of images, videos, YouTube link, or Vimeo links into the dropzone to build your gallery.

Layout

The Layout section controls how your images are arranged within the Gallery component. Use these settings to define the number of columns and the spacing between each thumbnail.

Columns

Adjust the number of columns displayed in your gallery.

  • Use the slider to set how many columns of thumbnails appear across your layout.

  • The gallery automatically adapts to different screen sizes, ensuring images remain evenly spaced and visually balanced.

Gap

Set the spacing between gallery items.

  • The Gap value defines the amount of space between thumbnails.

  • Use smaller values for a tighter grid or larger ones to give each image more breathing room.

  • The value corresponds to Tailwind’s spacing scale, so it remains consistent with your theme settings.

Thumbnails

The Thumbnails section controls how images are displayed within the Gallery component. You can adjust the size, shape, and appearance of the thumbnails, along with metadata such as captions and authors.

Media

These settings define the overall appearance of your thumbnails.

  • Aspect

    Choose between Square, Wide, or Tall to control the image aspect ratio.

  • Radius

    Adjust the corner rounding of your images.

  • Shadow

    Adds a soft drop shadow to thumbnails.

Meta Data

Use these options to control how meta information (such as captions or authors) is positioned and spaced around the thumbnail.

  • Alignment

    Align metadata text to the Left, Center, or Right of each thumbnail.

  • Margin

    Adds spacing around the metadata area and the thumbnail.

  • Spacing

    Controls the space between individual metadata items (for example, between a caption and author line).

Caption & Author

Controls the appearance of the image caption and author

  • Show

    Toggle captions on or off.

  • Color

    Sets the text color.

  • Font

    Select a font style (such as heading or body) from your project’s theme.

  • Size

    Define the text size.

The Lightbox section controls how images are displayed when clicked. Enabling the Lightbox allows visitors to view larger versions of your images in a clean, focused overlay without leaving the page.

Preview

Toggle the Preview option to enable or disable viewing the lightbox in the Elements Editor.

Media Fine-tune the appearance of images displayed inside the lightbox.

  • Radius

    Adjust the corner rounding of lightbox images. Use Default to follow your project’s theme styling.

  • Shadow

    Apply a drop shadow around images in the lightbox to give them depth and contrast. Use Default to follow your project’s theme styling.

Overlay

The Overlay section controls the background appearance behind images when the Lightbox is active. These settings let you adjust the overlay’s color, opacity, and blur to achieve the desired visual focus when viewing enlarged images.

Color

Choose the background color of the overlay.

  • This determines the tone of the area behind the image when opened in the Lightbox.

  • Darker overlays help the image stand out, while lighter tones can create a softer presentation.

Opacity

Adjust the transparency of the overlay.

  • Lower values make the background more visible through the overlay.

  • Higher values create a stronger contrast between the image and background.

    The default setting provides a subtle darkening effect suitable for most themes.

Blur

Adds a soft blur to the background content beneath the overlay.

  • This helps draw attention to the image while maintaining a sense of depth and polish.

  • Increase the blur amount for a more diffused background effect.

The Navigation section controls the appearance of the navigation buttons within the Lightbox view. These settings let you customise the look of the Close, Next, and Previous buttons to suit your project’s theme.

General

Adjust the overall design and sizing of navigation buttons.

  • Border Radius

    Controls the corner rounding of all navigation buttons. You can set independent values for horizontal and vertical radius, or leave as Default for theme consistency.

  • Padding

    Sets the inner spacing around each icon, determining how much space appears between the button edge and the icon.

  • Size

    Adjusts the icon size inside the navigation buttons.

  • State

    Switch between Default and Hover to style how buttons look in each interaction state.

Customise the appearance of the button used to close the Lightbox.

  • Background

    Sets the background color on the button

  • Icon

    Choose the color of the icon for better contrast against the background.

  • Opacity

    Adjusts the transparency of both the button and icon.

Advanced

The Advanced Section provides options for users who want finer control over styling or need to link directly to the Gallery component.

These settings are ideal for developers and advanced users comfortable with custom CSS or Tailwind utilities.

CSS Classes

Add one or more Tailwind CSS classes to the Gallery component for custom styling.

This allows you to extend or override default styles without editing your theme or component code.

You can use any valid Tailwind utility class to adjust spacing, colours, borders, or animations.

ID

Assign a unique ID to the component. This is useful for creating in-page anchor links or targeting the component with custom scripts and CSS selectors.

Last updated

Was this helpful?