{{ modal_key = 'column-stack-' + index }} {{ partial:components/section :bg-color="background.color" :bg-image="background.image ? background.image[0] : null" :max-width="options.max_content_width" :extra-padding="options.extra_section_padding" :class="options.custom_class_name" }} {{ if column_stack_title }} {{ partial:components/section-title :bg-color="background.color" :text="column_stack_title" }} {{ /if }} {{ if column_stack_text }} {{ partial:components/text-wrapper :bg-color="background.color" :text="column_stack_text" }} {{ /if }}
{{ columns }} {{ column_tag = column_link.link_field ? 'a' : 'div' }} {{ is_column_clickable = column_stack_settings.popup_text || column_link.link_field }} <{{ column_tag }} class=" flex group {{ if column_stack_settings.show_separation_border }} border-red {{ if !last }} border-b md:border-r md:border-b-0 {{ /if }} {{ /if }} {{ if column_stack_settings.display_type === 'wide' }} w-64 {{ elseif column_stack_settings.display_type === 'wider' }} w-80 {{ elseif column_stack_settings.display_type === 'widest' }} w-96 {{ elseif column_stack_settings.display_type === 'standard' }} w-44 {{ /if }} {{ if column_stack_settings.display_type !== 'stretch' }} p-4 flex-col-reverse flex-shrink-0 max-w-full {{ else }} py-4 md:py-0 md:px-4 text-left max-w-sm {{ if last }} pb-0 {{ /if }} {{ if first }} pt-0 {{ /if }} {{ /if }} {{ if is_column_clickable }} cursor-pointer {{ /if }} " {{ if column_link.link_field }} href=" {{ if column_link.link_field|contains('entry::') }} {{ link :id="column_link.link_field" }} {{ else }} {{ column_link.link_field|replace('asset::assets::', '/assets/') }} {{ /if }} " {{ if column_link.link_field|contains('asset::assets') }} target="_blank" {{ /if }} {{ /if }} {{ if column_stack_settings.popup_text }} x-data @click="$dispatch('open-modal-{{ modal_key }}', { active: {{ index }} })" {{ /if }} > {{ if column_text || column_title || column_link.link_text }}
{{ if column_title }}

{{ column_title }}

{{ /if }} {{ if column_text && !column_stack_settings.popup_text }} {{ partial:components/text-wrapper :bg-color="background.color" :text="column_text" size="sm" }} {{ /if }} {{ if column_link.link_text }} {{ partial:components/button :bg-color="background.color" :text="column_link.link_text" size="sm" :class="column_title || column_text ? 'mt-3' : ''" }} {{ /if }}
{{ /if }} {{ column_image }}
{{ alt ?? column_title }}
{{ /column_image }} {{ /columns }}
{{ /partial:components/section }} {{ if column_stack_settings.popup_text }} {{ partial:components/modal :key="modal_key" }}
{{ columns }}
{{ column_image }} {{ alt ?? column_title }} {{ /column_image }} {{ partial:components/section-title :text="column_title" }} {{ partial:components/text-wrapper :text="column_text" }}
{{ /columns }}
{{ /partial:components/modal }} {{ /if }}