{{ with .Params.album }}
  <section class="gallery">
    {{ range $id, $val := readDir (printf "/assets/media/albums/%s" (string .)) }}
      {{ with resources.Get (printf "media/albums/%s/%s" $.Params.album $val.Name) }}
        <div class="gallery__item">
          <input
            type="radio"
            id="img-{{ $id }}"
            checked
            name="gallery"
            class="gallery__selector"
          />
          <img
            class="gallery__img"
            src="{{ (.Fill "1152x768").RelPermalink }}"
            alt=""
            loading="lazy"
          />
          <label for="img-{{ $id }}" class="gallery__thumb">
            <img
              src="{{ (.Fill "150x100").RelPermalink }}"
              alt=""
              loading="lazy"
            />
          </label>
        </div>
      {{ end }}
    {{ end }}
  </section>
{{ end }}