{% load i18n wagtailimages_tags %}
{% if value.title %}
  <{{ value.heading_tag|default:"h3" }}>{{ value.title }}</{{ value.heading_tag|default:"h3" }}>
{% endif %}
<div class="{% if value.url %} design-system-enlarge-link{% endif %}">
  {% if value.url %}
    <a href="{{ value.url }}">
      {% image value.image original class="design-system-responsive-img" alt=value.alt %}
      <span class="design-system-sr-only">{% translate "Go to page" %} {{ value.url }}</span>
    </a>
  {% else %}
    {% image value.image original class="design-system-responsive-img" alt=value.alt %}
  {% endif %}
  {% if value.caption %}<div class="design-system-content-media__caption">{{ value.caption }}</div>{% endif %}
</div>
