{{ $image := (.Page.Resources.ByType "image") }}
{{ with $image }}
    <div class="columns-1 md:columns-3 gap-4 not-prose">
        {{ range . }}
            {{ $resized := .Resize "512x webp q70" }}
            <a class="" href="{{ .Permalink }}" data-lightbox="x"><img class="mb-4 rounded-lg" src="{{ $resized.Permalink }}" /></a>
        {{ end }}
    </div>
{{ end }}