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/797x679" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/797x679" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/640x640" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/640x640" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/632x611" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/632x611" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/646x787" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/646x787" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/771x658" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/771x658" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/695x724" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/695x724" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/717x746" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/717x746" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/793x796" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/793x796" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/783x628" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/783x628" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/692x611" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/692x611" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/699x626" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/699x626" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/692x690" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/692x690" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/757x784" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/757x784" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/785x660" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/785x660" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/738x789" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/738x789" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/694x634" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/694x634" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/623x651" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/623x651" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/600x616" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/600x616" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/685x650" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/685x650" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/663x642" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/663x642" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/651x752" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/651x752" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/676x630" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/676x630" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/793x695" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/793x695" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/640x744" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/640x744" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/614x733" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/614x733" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/627x613" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/627x613" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/793x633" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/793x633" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/697x657" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/697x657" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/607x790" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/607x790" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/796x643" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/796x643" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/779x712" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/779x712" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/649x716" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/649x716" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/744x755" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/744x755" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/618x708" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/618x708" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/687x702" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/687x702" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/742x762" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/742x762" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/715x728" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/715x728" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/674x796" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/674x796" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/765x682" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/765x682" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/611x747" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/611x747" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/795x672" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/795x672" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/786x655" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/786x655" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/600x729" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/600x729" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/672x640" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/672x640" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/637x761" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/637x761" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/751x778" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/751x778" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/678x645" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/678x645" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/632x755" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/632x755" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/688x788" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/688x788" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/636x621" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/636x621" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/606x630" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/606x630" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/622x627" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/622x627" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/712x659" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/712x659" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/695x678" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/695x678" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/704x626" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/704x626" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/660x718" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/660x718" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/710x741" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/710x741" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/764x714" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/764x714" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/786x609" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/786x609" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/672x607" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/672x607" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/767x736" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/767x736" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/774x774" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/774x774" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/686x701" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/686x701" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/661x700" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/661x700" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/772x754" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/772x754" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/615x783" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/615x783" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/729x641" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/729x641" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/745x642" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/745x642" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/725x624" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/725x624" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/689x664" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/689x664" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/688x763" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/688x763" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/650x724" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/650x724" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/798x696" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/798x696" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/746x790" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/746x790" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/747x752" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/747x752" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/777x755" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/777x755" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/666x646" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/666x646" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/654x738" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/654x738" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/656x785" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/656x785" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/636x641" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/636x641" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/758x728" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/758x728" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/762x721" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/762x721" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/749x772" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/749x772" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/667x602" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/667x602" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/796x711" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/796x711" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/611x748" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/611x748" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/769x729" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/769x729" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/617x641" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/617x641" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/672x645" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/672x645" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/766x795" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/766x795" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/707x641" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/707x641" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/709x637" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/709x637" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/707x783" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/707x783" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/605x706" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/605x706" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/774x692" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/774x692" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/665x785" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/665x785" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/739x669" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/739x669" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/765x605" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/765x605" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/620x677" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/620x677" alt="placeholder image alternative text" />
                <figcaption>image caption</figcaption>
            </figure>
        </a>
    </li>
    <li>
        <a href="https://via.placeholder.com/800x646" class="gallery-link" aria-label="image caption" aria-describedby="image-gallery__open-gallery">
            <figure><img src="https://via.placeholder.com/800x646" 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/797x679",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/640x640",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/632x611",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/646x787",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/771x658",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/695x724",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/717x746",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/793x796",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/783x628",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/692x611",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/699x626",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/692x690",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/757x784",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/785x660",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/738x789",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/694x634",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/623x651",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/600x616",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/685x650",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/663x642",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/651x752",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/676x630",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/793x695",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/640x744",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/614x733",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/627x613",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/793x633",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/697x657",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/607x790",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/796x643",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/779x712",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/649x716",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/744x755",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/618x708",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/687x702",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/742x762",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/715x728",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/674x796",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/765x682",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/611x747",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/795x672",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/786x655",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/600x729",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/672x640",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/637x761",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/751x778",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/678x645",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/632x755",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/688x788",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/636x621",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/606x630",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/622x627",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/712x659",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/695x678",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/704x626",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/660x718",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/710x741",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/764x714",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/786x609",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/672x607",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/767x736",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/774x774",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/686x701",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/661x700",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/772x754",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/615x783",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/729x641",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/745x642",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/725x624",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/689x664",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/688x763",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/650x724",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/798x696",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/746x790",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/747x752",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/777x755",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/666x646",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/654x738",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/656x785",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/636x641",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/758x728",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/762x721",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/749x772",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/667x602",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/796x711",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/611x748",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/769x729",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/617x641",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/672x645",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/766x795",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/707x641",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/709x637",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/707x783",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/605x706",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/774x692",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/665x785",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/739x669",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/765x605",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/620x677",
      "alt": "placeholder image alternative text",
      "caption": "image caption"
    },
    {
      "src": "https://via.placeholder.com/800x646",
      "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