<div class="row cms-block-container-row row cms-row ">
{# @fourtwosix-edit: rep is the #}
{% if data.repeat_column is defined and data.repeat_column is iterable %}
{# @fourtwosix-edit: These need to be defined only once #}
{% set attributes = {
'class': 'cms-image',
'data-object-fit': "cover",
'loading':"lazy"
} %}
{# @fourtwosix-edit: each repetition is a col with Text Image and Category Link #}
{% for element in data.repeat_column %}
{% set categoryLink = seoUrl('frontend.navigation.page', { navigationId:element.category.getId()}) %}
{% if element.media_category_background is defined and element.media_category_background is not null %}
<div class="col-lg-4 col-md-6 pb-4">
<div class="cms-element-image">
{# @fourtwosix-edit: Link --------------------------- #}
<a href="{{ categoryLink }}" class="cms-image-link text-decoration-none">
<div class="cms-image-container is-cover d-flex align-items-center justify-content-center"
style="min-height: 340px;">
{# @fourtwosix-edit: Text ------------------- #}
{% if element.text_category_name is defined %}
<h5 class="d-inline-block text-over-image">{{ element.text_category_name }}</h5>
{% endif %}
{# @fourtwosix-edit: Image ------------------ #}
{% sw_thumbnails 'thumbnails' with {
media: element.media_category_background,
} %}
</div>
</a>
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>