john And on the subject of possible future features for consideration, every time I create a gallery I have to write my own code, like this:
<am-gallery class="am-block">
<style scoped>@media (max-width: 437.5px) { .am-gallery-masonry { grid-template-columns: 1fr; } }
</style>
<div class="am-gallery-masonry am-gallery-masonry-clean-bottom" style="--am-gallery-item-width:250px">
<div class="am-gallery-masonry-item"
style="--am-gallery-masonry-rows: 7;" >
<a href="/images/image-1.webp"
onerror="this.src='/images/image-1.jpg';"
class="am-gallery-img-small"
data-caption="Caption 1"
data-am-block-lightbox>
<img width="200" src="/images/image-1.webp"
onerror="this.src='/images/image-1.jpg';" /></a>
</div>
<div class="am-gallery-masonry-item"
style="--am-gallery-masonry-rows: 7;" >
<a href="/images/image-2.webp"
onerror="this.src='/images/image-2.jpg';"
class="am-gallery-img-small"
data-caption="Caption 2"
data-am-block-lightbox>
<img width="200" src="/images/image-2.webp"
onerror="this.src='/images/image-2.jpg';" /></a>
</div>
</div>
</am-gallery>
The reason I can't just use the standard gallery is that there is no field for alternative image. If I use only .jpg or .png the file size for each image is much larger than if I use .webp. But, if I use only .webp, a few browsers will not be able to see the .webp images.
I would be so great if there were an 'alternative image file' field on the galleries and slideshows so we could use two images and improve our Page Performance metrics with search engines we need to rank with!