{%- macro img_cell(slot, caption_slot) -%} {%- set img = input[slot] -%} {%- set cap = input[caption_slot] -%}
{%- if img and img.resolved_path %} {{ cap or '' }} {%- elif img and img.resolved_svg %}
{{ img.resolved_svg | safe }}
{%- endif %} {%- if cap %}
{{ cap }}
{%- endif %}
{%- endmacro -%}
{%- if input.eyebrow or input.title or input.subtitle %}
{%- if input.eyebrow %}
{{ input.eyebrow }}
{%- endif %} {%- if input.title %}

{{ input.title }}

{%- endif %} {%- if input.subtitle %}

{{ input.subtitle }}

{%- endif %}
{%- endif %}
{{ img_cell('hero_image', 'hero_caption') }} {{ img_cell('top_image', 'top_caption') }} {{ img_cell('middle_image', 'middle_caption') }}
{{ img_cell('bottom_image', 'bottom_caption') }}
{{ img_cell('wide_left_image', 'wide_left_caption') }} {{ img_cell('wide_right_image', 'wide_right_caption') }}
{%- if input.source_attribution %}
{{ input.source_attribution }}
{%- endif %}