{% load wagtailimages_tags %} {% if self.image %}
{% picture self.image format-{avif,webp,jpeg} fill-{400x220,800x450,1200x675} sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw" loading="lazy" class="aspect-video w-full object-cover" %} {% if self.image.caption or self.image.attribution %}
{% if self.image.caption %} {{ self.image.caption }} {% endif %} {% if self.image.caption and self.image.attribution %} {% endif %} {% if self.image.attribution %} {{ self.image.attribution }} {% endif %}
{% endif %}
{% endif %}