<div class="br8 mt-40px mb-40px pxaic">
<div class="block-text-pic dflex{% if block.image_position == "right" %} jcfe{% endif %}">
{% set checkPosition = "left" %}
{% if block.text_pic_img is defined and block.text_pic_img is not empty %}
{% if block.image_position == "left" %}
{% set checkPosition = "right" %}
<div class="block-pic-main">
<img class="main-pic w100" src="{{ block.text_pic_img.formats['600x.webp'] }}" srcset="{{ block.text_pic_img.formats['300x.webp'] }} 300w, {{ block.text_pic_img.formats['600x.webp'] }} 600w, {{ block.text_pic_img.formats['1000x.webp'] }} 1000w" sizes="600px" alt="{{ block.text_pic_img | copyright_or_description_or_title }}" loading="lazy" width="{{ block.text_pic_img.fileVersion.properties.width }}" height="{{ block.text_pic_img.fileVersion.properties.height }}">
</div>
{% endif %}
{% endif %}
<div class="block-texte {{ (checkPosition == 'right') ? 'block-texte-right' : 'block-texte-left' }}">
{% if block.text_pic1_text is defined and block.text_pic1_title is not empty %}
<h2 class="mb-1em fw400 fs36 lh40">
{{ block.text_pic1_title }}
</h2>
{% endif %}
{% if block.text_pic1_text is defined and block.text_pic1_text is not empty %}
<div class="fw400 fs16 lh24 framed">
{{ block.text_pic1_text | raw }}
</div>
{% endif %}
</div>
{% if block.text_pic_img is defined and block.text_pic_img is not empty %}
{% if block.image_position == "right" %}
<div class="block-pic-main">
<img class="main-pic w100" src="{{ block.text_pic_img.formats['600x.webp'] }}" srcset="{{ block.text_pic_img.formats['300x.webp'] }} 300w, {{ block.text_pic_img.formats['600x.webp'] }} 600w, {{ block.text_pic_img.formats['1000x.webp'] }} 1000w" sizes="600px" alt="{{ block.text_pic_img | copyright_or_description_or_title }}" width="{{ block.text_pic_img.fileVersion.properties.width }}" height="{{ block.text_pic_img.fileVersion.properties.height }}">
</div>
{% endif %}
{% endif %}
</div>
</div>