{# Pass the cards array and the rows scaffolding. #}
{% set batch = batch|default(3) %}
{% set col_width = (12 / batch) %}
{# This override the batch mechanims and sets the responsive classes directly #}
{% set col_class = 'col-lg-' ~ col_width ~ ' ' ~ col_classes %}
{% set no_justify = no_justify|default(false) %}
{% set scrolling_mobile = mobile_slider|default(false) %}
{% set scrolling_dots = scrolling_dots|default(false) %}
{% set row_class = (no_justify == true ? '' : 'justify-content-center ') ~ row_classes %}
{% set wrapper_class = wrapper_class|default('mt-5 mb-4') %}
{% if mobile_slider %}
  {% set scrolling_dots = true %}
{% endif %}
{% if col_classes_override %}{% set col_class = col_classes_override %}{% endif %}
{% include "@organisms/tm-scaffold/rows-cols/rows-cols.twig" with {
  'wrapper_class': wrapper_class,
  'batch': batch,
  'items': items,
  'auto_height': true,
  'col_class': col_class,
  'row_class': row_class,
  'scrolling_mobile': scrolling_mobile,
  'scrolling_dots': scrolling_dots,
} only %}
