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/786x748" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/786x748" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/790x797" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/790x797" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/635x683" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/635x683" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/632x643" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/632x643" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/600x710" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/600x710" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/731x653" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/731x653" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/689x794" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/689x794" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/742x692" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/742x692" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/783x636" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/783x636" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/663x635" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/663x635" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/728x749" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/728x749" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/677x644" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/677x644" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/687x682" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/687x682" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/647x645" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/647x645" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/744x709" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/744x709" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/736x641" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/736x641" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/715x632" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/715x632" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/735x763" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/735x763" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/682x607" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/682x607" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/702x715" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/702x715" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/625x643" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/625x643" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/629x618" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/629x618" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/653x723" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/653x723" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/737x614" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/737x614" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/778x735" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/778x735" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/625x788" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/625x788" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/726x759" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/726x759" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/776x633" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/776x633" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/629x776" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/629x776" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/651x787" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/651x787" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/708x616" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/708x616" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/706x641" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/706x641" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/719x800" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/719x800" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/778x694" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/778x694" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/624x750" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/624x750" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/736x752" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/736x752" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/612x603" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/612x603" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/644x730" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/644x730" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/728x728" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/728x728" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/622x755" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/622x755" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/742x755" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/742x755" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/627x724" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/627x724" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/784x707" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/784x707" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/735x772" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/735x772" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/797x721" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/797x721" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/642x620" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/642x620" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/740x784" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/740x784" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/712x728" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/712x728" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/717x727" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/717x727" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/602x792" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/602x792" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/728x735" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/728x735" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/648x618" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/648x618" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/610x658" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/610x658" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/742x785" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/742x785" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/759x616" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/759x616" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/775x710" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/775x710" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/657x656" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/657x656" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/628x781" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/628x781" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/785x603" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/785x603" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/651x746" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/651x746" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/709x686" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/709x686" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/681x669" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/681x669" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/630x784" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/630x784" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/648x694" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/648x694" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/600x649" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/600x649" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/741x724" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/741x724" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/604x673" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/604x673" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/713x717" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/713x717" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/717x766" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/717x766" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/606x610" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/606x610" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/670x726" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/670x726" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/610x757" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/610x757" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/658x787" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/658x787" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/648x648" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/648x648" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/800x694" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/800x694" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/650x656" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/650x656" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/659x622" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/659x622" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/679x769" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/679x769" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/623x768" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/623x768" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/681x666" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/681x666" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/719x693" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/719x693" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/631x685" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/631x685" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/738x700" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/738x700" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/626x654" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/626x654" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/677x795" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/677x795" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/730x703" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/730x703" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/608x730" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/608x730" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/641x686" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/641x686" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/757x755" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/757x755" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/775x735" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/775x735" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/794x753" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/794x753" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/690x766" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/690x766" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/748x674" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/748x674" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/778x749" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/778x749" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/605x708" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/605x708" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/800x756" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/800x756" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/604x602" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/604x602" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/749x759" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/749x759" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/609x789" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/609x789" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/743x613" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/743x613" 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/786x748",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/790x797",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/635x683",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/632x643",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/600x710",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/731x653",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/689x794",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/742x692",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/783x636",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/663x635",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/728x749",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/677x644",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/687x682",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/647x645",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/744x709",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/736x641",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/715x632",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/735x763",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/682x607",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/702x715",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/625x643",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/629x618",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/653x723",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/737x614",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/778x735",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/625x788",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/726x759",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/776x633",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/629x776",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/651x787",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/708x616",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/706x641",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/719x800",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/778x694",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/624x750",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/736x752",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/612x603",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/644x730",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/728x728",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/622x755",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/742x755",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/627x724",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/784x707",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/735x772",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/797x721",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/642x620",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/740x784",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/712x728",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/717x727",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/602x792",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/728x735",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/648x618",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/610x658",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/742x785",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/759x616",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/775x710",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/657x656",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/628x781",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/785x603",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/651x746",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/709x686",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/681x669",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/630x784",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/648x694",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/600x649",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/741x724",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/604x673",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/713x717",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/717x766",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/606x610",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/670x726",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/610x757",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/658x787",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/648x648",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/800x694",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/650x656",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/659x622",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/679x769",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/623x768",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/681x666",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/719x693",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/631x685",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/738x700",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/626x654",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/677x795",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/730x703",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/608x730",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/641x686",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/757x755",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/775x735",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/794x753",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/690x766",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/748x674",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/778x749",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/605x708",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/800x756",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/604x602",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/749x759",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/609x789",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/743x613",
      "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 {
          width: span(6 of 12);
        }
    
        @include tablet {
          width: span(4 of 12);
        }
    
        @include desktop {
          width: span(3 of 12);
        }
    
        &.hidden {
          margin: 0;
        }
      }
    
      width: 100%;
    }
    
  • URL: /components/raw/image-wall/_image-wall.scss
  • Filesystem Path: components/41-organisms/image-wall/_image-wall.scss
  • Size: 438 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