<div class="block-{{block.key}} {{block.classes}}">
    <div class="block-container" data-tabs-container>
        <div class="block-{{block.key}}__tabs">
            {% for tab in block.content %}
                <button class="{% if loop.first %} is-selected{% endif %}" data-tab-target="{{loop.index}}">{{tab.name}}{% if not loop.last %},{% endif %}</button>
            {% endfor %}
        </div>
        {% for tab in block.content %}
            <div class="block-{{block.key}}-tab" data-tab-index="{{loop.index}}" style="{% if loop.first %}display:block{% endif %}">
                <div>
                    <div class="block-{{block.key}}-tab__img">
                        {% include "../layout/partials/picture.twig" with {"image": tab.image } %}
                    </div>
                    <div class="block-{{block.key}}-tab__content">
                        {{tab.text}}
                    </div>
                </div>
            </div>    
        {% endfor %}
    </div>
</div>