City of Ghent Style Guide

Image wall

When to use this component

Use the image wall component on detail pages to present a set of images as a whole, showing the complete set of images using thumbnails.

When not to use this component

Do not use the image wall component:

  • To present only one image or only a few images. Only use the image wall component when the set of images contains at least 5 images.
  • To present images on a detail page that also already contains a lot of other content. The image wall component works best if it’s the only component on the detail page or if not much other content is placed before or after the image wall component.

Do not use the image wall component on overview pages or filter pages. Only use the image wall component on detail pages.

How it works

  • An image wall is a list of images presented by using figures.
  • Thumbnails are used to present the set of images.
  • The number of thumbnails is equal to the number of images in the set of images.
  • All thumbnails are shown.
  • Clicking a thumbail shows all images in a modal image gallery (lightbox).

Implementation

  • Using the class ‘image-gallery’ on the list element triggers lightbox initialisation on page load.

Accessibility

  • The images are placed in a unordered list.
  • When a image caption is provided, this is also used as aria-label for the lightbox link.
  • All lightbox links are described by a hidden span to identify it’s purpose (e.a.: ‘open gallery), add this to the bottom of your page template (above scripts).
  • The lightbox can be closed by use of the escape key.
  • Navigating through images in the lightbox can be done by using the arrow keys.
<ul class="image-wall js-lightbox">
  {% for item in items %}
    <li>
      <a href="{{ item.src }}" class="gallery-link"
          {% if item.caption %}
            aria-label="{{ item.caption }}"
          {% endif %}
         aria-describedby="image-gallery__open-gallery">
        {% include '@image' with {
          "caption": item.caption,
          "src": item.src,
          "alt_text": item.alt,
          "ratio": null
        } %}
      </a>
    </li>
  {% endfor %}
</ul>

<!-- Add this to the bottom of your page template, above scripts -->
<!-- <span hidden id="image-gallery__open-gallery">open gallery</span> -->
<ul class="image-wall js-lightbox">
    <li>
        <a href="https://via.placeholder.com/800x643" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/800x643" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/744x794" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/744x794" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/704x737" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/704x737" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/721x647" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/721x647" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/622x686" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/622x686" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/625x640" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/625x640" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/790x704" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/790x704" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/749x780" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/749x780" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/677x702" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/677x702" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/669x721" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/669x721" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/763x780" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/763x780" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/667x665" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/667x665" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/741x673" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/741x673" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/676x783" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/676x783" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/624x683" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/624x683" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/774x759" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/774x759" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/634x791" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/634x791" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/790x694" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/790x694" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/679x666" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/679x666" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/647x751" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/647x751" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/685x750" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/685x750" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/664x663" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/664x663" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/774x727" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/774x727" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/664x753" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/664x753" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/607x759" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/607x759" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/607x748" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/607x748" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/785x795" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/785x795" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/651x605" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/651x605" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/617x691" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/617x691" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/761x798" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/761x798" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/646x695" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/646x695" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/723x697" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/723x697" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/671x774" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/671x774" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/792x797" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/792x797" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/690x667" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/690x667" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/683x693" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/683x693" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/656x633" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/656x633" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/606x726" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/606x726" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/792x785" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/792x785" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/701x694" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/701x694" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/645x754" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/645x754" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/745x719" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/745x719" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/673x612" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/673x612" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/800x688" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/800x688" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/652x615" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/652x615" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/625x655" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/625x655" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/736x759" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/736x759" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/687x739" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/687x739" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/717x681" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/717x681" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/650x714" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/650x714" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/608x708" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/608x708" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/637x789" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/637x789" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/694x722" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/694x722" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/784x744" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/784x744" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/676x644" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/676x644" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/663x708" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/663x708" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/711x615" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/711x615" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/624x666" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/624x666" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/721x651" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/721x651" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/786x800" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/786x800" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/660x737" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/660x737" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/773x649" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/773x649" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/726x633" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/726x633" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/718x765" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/718x765" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/699x667" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/699x667" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/671x684" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/671x684" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/799x608" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/799x608" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/612x628" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/612x628" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/742x733" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/742x733" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/700x687" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/700x687" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/711x701" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/711x701" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/750x662" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/750x662" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/656x664" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/656x664" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/771x618" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/771x618" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/669x616" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/669x616" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/780x784" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/780x784" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/627x710" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/627x710" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/782x742" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/782x742" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/774x703" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/774x703" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/618x682" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/618x682" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/668x783" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/668x783" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/610x752" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/610x752" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/685x783" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/685x783" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/642x747" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/642x747" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/682x616" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/682x616" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/722x674" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/722x674" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/792x651" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/792x651" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/649x698" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/649x698" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/747x657" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/747x657" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/656x619" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/656x619" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/640x761" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/640x761" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/645x608" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/645x608" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/608x713" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/608x713" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/610x709" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/610x709" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/694x798" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/694x798" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/679x759" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/679x759" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/628x646" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/628x646" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/676x781" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/676x781" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/611x605" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/611x605" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/782x678" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/782x678" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
</ul>

<!-- Add this to the bottom of your page template, above scripts -->
<!-- <span hidden id="image-gallery__open-gallery">open gallery</span> -->
{
  "items": [
    {
      "src": "https://via.placeholder.com/800x643",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/744x794",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/704x737",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/721x647",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/622x686",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/625x640",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/790x704",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/749x780",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/677x702",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/669x721",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/763x780",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/667x665",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/741x673",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/676x783",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/624x683",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/774x759",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/634x791",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/790x694",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/679x666",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/647x751",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/685x750",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/664x663",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/774x727",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/664x753",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/607x759",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/607x748",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/785x795",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/651x605",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/617x691",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/761x798",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/646x695",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/723x697",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/671x774",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/792x797",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/690x667",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/683x693",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/656x633",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/606x726",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/792x785",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/701x694",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/645x754",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/745x719",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/673x612",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/800x688",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/652x615",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/625x655",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/736x759",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/687x739",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/717x681",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/650x714",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/608x708",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/637x789",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/694x722",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/784x744",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/676x644",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/663x708",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/711x615",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/624x666",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/721x651",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/786x800",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/660x737",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/773x649",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/726x633",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/718x765",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/699x667",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/671x684",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/799x608",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/612x628",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/742x733",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/700x687",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/711x701",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/750x662",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/656x664",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/771x618",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/669x616",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/780x784",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/627x710",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/782x742",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/774x703",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/618x682",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/668x783",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/610x752",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/685x783",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/642x747",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/682x616",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/722x674",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/792x651",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/649x698",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/747x657",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/656x619",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/640x761",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/645x608",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/608x713",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/610x709",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/694x798",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/679x759",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/628x646",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/676x781",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/611x605",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/782x678",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    }
  ]
}
  • Content:
    .image-wall {
      @include phablet {
        display: flex;
        flex: 1 1 100%;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
      }
    
      > li {
        margin-bottom: $gutter-width;
    
        @include phablet {
          @include col(6);
        }
    
        @include tablet {
          @include col(4);
        }
    
        @include desktop {
          @include col(3);
        }
    
        &.hidden {
          margin: 0;
        }
      }
    
      width: 100%;
    }
    
  • URL: /components/raw/image-wall/_image-wall.scss
  • Filesystem Path: components/41-organisms/image-wall/_image-wall.scss
  • Size: 423 Bytes
  • Content:
    /**
     * @file
     * Javascript binding of Masonry.
     */
    'use strict';
    
    (function () {
    
      if (!Masonry || !imagesLoaded) { // eslint-disable-line no-undef
        return;
      }
    
      const grid = document.querySelector('.image-wall');
      if (!grid) {
        return;
      }
    
      const msnry = new Masonry(grid, { // eslint-disable-line no-undef
        columnWidth: 'li:not(.hidden)',
        itemSelector: 'li',
        transitionDuration: 0,
        gutter: 24
      });
    
      imagesLoaded(grid).on('progress', () => { // eslint-disable-line no-undef
        msnry.layout();
      });
    
    })();
    
  • URL: /components/raw/image-wall/image-wall.bindings.js
  • Filesystem Path: components/41-organisms/image-wall/image-wall.bindings.js
  • Size: 538 Bytes