{#
/**
 * @file
 * Theme override for a two column layout.
 *
 * This template provides a two column display layout, with
 * tailwind classes.
 *
 * Available variables:
 * - in_preview: Whether the plugin is being rendered in preview mode.
 * - content: The content for this layout.
 * - attributes: HTML attributes for the layout <div>.
 */
#}
{%
  set classes = [
    'layout',
    'layout--tailwind-twocol',
  ]
%}
{% if content %}
  <div{{ attributes.addClass(classes) }}>
    <div class="flex flex-wrap flex-col sm:flex-row gap-4">
      {% if content.first %}
        <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first', 'flex-1') }}>
          {{ content.first }}
        </div>
      {% endif %}

      {% if content.second %}
        <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second', 'flex-1') }}>
          {{ content.second }}
        </div>
      {% endif %}
    </div>
  </div>
{% endif %}
