{#
/**
 * @file
 * Default theme implementation to display a linkable block entity.
 *
 * Available variables:
 * - elements: The entity.
 * - cards_per_row: The number of cards to be displayed per row. This is used
 *          to set the column class if needed to be set here.
 *
 * @see linkable_blocks_preprocess_eck_entity__linkable_block()
 *
 * @ingroup themeable
 */
#}
{# Pass the cards array and the rows scaffolding. #}
{% set batch = cards_per_row|default(3) %}
{% set cols = 12 / cards_per_row %}
{% set col_class = 'col-6 col-lg-' ~ cols %}
{% set no_justify = no_justify|default(false) %}
{% set scrolling_mobile = true %}
{% set scrolling_dots = scrolling_dots_mobile|default(false) %}
{% set row_classes = row_classes|default('gy-4') %}
{% set row_class = (no_justify == true ? '' : 'justify-content-center ') ~ row_classes %}
{% set wrapper_class = wrapper_class|default('') %}
{% 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_mobile_breakpoint': 'sm',
  'scrolling_dots': scrolling_dots,
} only %}

