{% set img_alt   = '' %}

{% if img_alt is not empty %}
    {% set img_alt = section.content.alt %}
    {% else %}
    {% set img_alt = 'ingrandisci immagine' %}
{% endif %}

<div class="relative my-4 ">
    <a class="block" href="{{section.content.url}}" title="{{img_alt}}" class="fancybox" data-fancybox-type="image">
        <img loading="lazy" fetchpriority="low" class="w-full rounded-lg mx-auto block shadow" src="{{section.content.url}}?w={{section.content.width}}&h={{section.content.height}}" width="660" alt="{{img_alt}}" data-src="{{section.content.url}}">
    </a>
</div>
