{% set more_stories = pimcore_relations('more_stories').getElements()|default([]) %}
<div class="toolbox-element toolbox-container {{ additionalClassesData|join(' ') }}">
<div class="overflow-hidden">
<div class="relative mx-auto px-4 sm:px-6 lg:px-8{% if not editmode %} max-w-md sm:max-w-3xl lg:max-w-7xl{% endif %}">
<div>
<h3 class="text-center text-white text-4xl tracking-tight sm:text-4xl">
<span class="my-8 block text-left {% if not editmode %} max-w-max{% endif %}">
{{ pimcore_input("headline") }}
</span>
</h3>
</div>
<div class="{% if (more_stories|length ) < 4 %}grid grid-cols-1 gap-3 sm:grid-cols-3{% else %}story-slider swiper overflow-visible">
<div class="swiper-wrapper{% endif %}">
{% for successStory in more_stories %}
<div class="swiper-slide item max-w-[25rem]">
{{ include("digitalwandler/Components/successStory.html.twig") }}
</div>
{% endfor %}
{% if (more_stories|length ) > 3 %}</div>
<div id="service-pagination" class="swiper-pagination"></div>{% endif %}
</div>
</div>
</div>
</div>