{%- set v = variant or 'with-overlay' %} {%- set pos = input.position or 'center' %} {%- set has_overlay = v == 'with-overlay' and (input.eyebrow or input.title or input.subtitle) %} {%- set img = input.image %}
{%- if img and img.resolved_svg %}
{{ img.resolved_svg | safe }}
{%- elif img and img.resolved_path %} {{ input.caption or '' }} {%- endif %} {%- if has_overlay %}
{%- if input.eyebrow %}
{{ input.eyebrow }}
{%- endif %} {%- if input.title %}

{{ input.title }}

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

{{ input.subtitle }}

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