{% extends '@nucleus/partials/particle.html.twig' %}

{% block stylesheets %}
<style>
{% if particle.grid_parallax and particle.grid_type == 'grid' %}#{{id}}-particle {box-sizing: content-box;}{% endif %}
{% if particle.particle_title_color or particle.particle_title_fontsize %}
#{{ id }}.g5-particle-title { {% if particle.particle_title_color %}color: {{ particle.particle_title_color }};{% endif %}{% if particle.particle_title_fontsize %}font-size: {{particle.particle_title_fontsize}}px;{% endif %} }
{% endif %}
{% if particle.customize_title_color or particle.customize_title_fontsize %}#{{ id }} .tm-title { {% if particle.customize_title_color %}color: {{particle.customize_title_color}}; {% endif %}{% if particle.customize_title_fontsize %}font-size: {{particle.customize_title_fontsize}}px;{% endif %} }{% endif %}
{% if particle.customize_content_color or particle.customize_content_fontsize %}#{{ id }} .tm-content { {% if particle.customize_content_color %}color: {{particle.customize_content_color}};{% endif %}{% if particle.customize_content_fontsize %} font-size: {{particle.customize_content_fontsize}}px;{% endif %} }{% endif %}
{% if particle.meta_color or particle.meta_fontsize %}#{{ id }} .tm-meta { {% if particle.meta_color %}color: {{particle.meta_color}};{% endif %}{% if particle.meta_fontsize %} font-size: {{particle.meta_fontsize}}px;{% endif %} }{% endif %}
{% if particle.grid_parallax != '' and particle.grid_type == 'grid' %}.tm-content-{{id}} {box-sizing: content-box;}{% endif %}
.tm-intense-wrapper .tm-data-image,.tm-intense-wrapper .tm-image{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi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ilpqY+4W9E6Me3Yp4EkVH04uLiDvsbkZiYGCvmERDp3QjEUVFP+hsRAeZrINLBQ1kyEjF/IQGswMwPL4v59wkDssi6uroUfyECrDzzHbPOEQg2HVg2ibsHRNj1ROgVYP1OuLACEUt4ePjT2BX3dWsAI2E9wTa/qXy5RYR+sRvUtGLDGFv7XsR4e0drU4CRsOJl3ko6tW07iOQjvIjj4+NzCgoKDvmqNYANGNnmB6EP79gO4unExgad0WjsCQsLe88XiczNzX0ilUqPs9026Li8Q2rChdie9DUSwMRJmDjWLRHviDA3Gf8ylZGRUajRaOJ8hURFRYUMmPhhIcfKbLqWwMU+p0aNrXy1Wv2Wt3fk8/LypDqdThsYGIhFoI5IqAVY7RLx1Q89yEKe2fOHHn4hIsNVPKCxsbG+srJS5g13wticxFVg2u2j6P3/MZRbZolbRocHKpXKNxH+YG5PuhLGwFichI5bYskuVgc2GIQFA2aDwdDqoYKBHCKwj4fYN4jAhbvgcowIvwklHJ+RvsoEJRzkBm2lpaW9zpRwaLXaY+SuWTtKOL7Ge8IjJRw7bj5Kzftse1HNEopqsPU6MjIy3d/fP9fX17c4Nja2UVQTGxu7PyUl5RGFQhEmk8kiaFGUROsJOU/FGfu/qOZjInDNASyuu4OgzGnYhTIng9fKnHYjxTYLz5BCICM4wjYLz6y/uLDwDPsEPWyz8GzGxXE32v8EGADbuW2sOaxEjQAAAABJRU5ErkJggg==) 25 25,auto;display:inline-block}
{% if particle.grid_type == 'slider' %}
{% if particle.slide_color or particle.slide_background or particle.padding_vertical or particle.padding_horizontal %}
#{{ id }} .jl-slidenav {
    padding: {{ particle.padding_vertical }}px {{ particle.padding_horizontal }}px;
    {% if particle.slide_color %}
    color: {{ particle.slide_color }};
    {% endif %}
    {% if particle.slide_background %}
    background: {{ particle.slide_background }};
    {% endif %}
    transition: .1s ease-in-out;
    transition-property: color,background-color,border-color,box-shadow;
}
{% endif %}
{% if particle.slide_hover_color or particle.slide_hover_background %}
#{{ id }} .jl-slidenav:active,#{{ id }} .jl-slidenav:focus,#{{ id }} .jl-slidenav:hover{
    {% if particle.slide_hover_color %}
    color: {{ particle.slide_hover_color }};
    {% endif %}  
    {% if particle.slide_hover_background %}
    background: {{ particle.slide_hover_background }};
    {% endif %}
}
{% endif %}
{% endif %}
</style>
{% endblock %}

{# Set JS #}
{% block javascript_footer %}
  <script src="{{ url('gantry-theme://js/intense.min.js') }}"></script>
  <script>
  {% if particle.overlay_mode == 'cover' or particle.overlay_mode == 'caption' %}
  var element = document.querySelectorAll( '.tm-data-image' );
  Intense( element );
  {% else %}
  var element = document.querySelectorAll( '.tm-image' );
  Intense( element );
  {% endif %}
  </script>
{% endblock %}

{# Set Viewport Height #}
{% if particle.viewport_height == 'full' %}
    {% set viewport_height = 'jl-height-viewport="offset-top: true;"' %}
{% elseif particle.viewport_height == 'percent' %}
    {% set viewport_height = 'jl-height-viewport="offset-top: true; offset-bottom: 20;"' %}
{% elseif particle.viewport_height == 'section' %}
    {% set viewport_height = 'jl-height-viewport="offset-top: true; offset-bottom: 50;"' %}
{% elseif particle.viewport_height == 'expand' %}
    {% set viewport_height = 'jl-height-viewport="expand: true;"' %}
{% endif %}

{# Set Padding #}
{% if particle.padding == 'default' %}
    {% set padding = ' jl-section' %}
{% elseif particle.padding == 'none' %}
    {% set padding = ' jl-section jl-padding-remove-vertical' %}
{% else %}
    {% set padding = ' jl-section jl-section-' ~ particle.padding|e ~ '' %}
{% endif %}

{# Set Title/Meta/Content Text Transform #}
{% set title_text_transform = particle.title_text_transform ? ' jl-text-' ~ particle.title_text_transform|e ~ '' %}
{% set meta_text_transform = particle.meta_text_transform ? ' jl-text-' ~ particle.meta_text_transform|e ~ '' %}
{% set content_text_transform = particle.content_text_transform ? ' jl-text-' ~ particle.content_text_transform|e ~ '' %}

{# Set Background color #}
{% set parallax_bg_color = particle.parallax_bg_color ? 'style="background-color: ' ~ particle.parallax_bg_color ~ ';"' %}
{% set parallax_overlay = (particle.parallax_bg_overlay ? '<div class="jl-position-cover" style="background-color: '~ particle.parallax_bg_overlay ~';"></div>') %}
{% set parallax_easing = particle.parallax_easing ? 'easing:' ~ particle.parallax_easing / 10 ~ '' %}

{# Set Max-Width Content Section #}
{% set container_maxwidth %}
{% if particle.container_maxwidth == 'default' %}jl-container{% else %}jl-container jl-container-{{particle.container_maxwidth|e}}{% endif %}
{% endset %}

{# Set Max-Width Content #}
{% set content_maxwidth %}
{% if particle.g_maxwidth != 'inherit' %} jl-width-{{particle.g_maxwidth}}{% if particle.g_maxwidth_breakpoint != 'always' %}@{{particle.g_maxwidth_breakpoint}}{% endif %}{% if particle.g_maxwidth_alignment == 'left' %}{% elseif particle.g_maxwidth_alignment == 'center' %} jl-margin-auto{% else %} jl-margin-auto-left{% endif %}{% endif %}
{% endset %}

{# Set Parallax Background #}
{% set parallaxbackground %}
{% if particle.parallax_image %}
<div data-src="{{ url(particle.parallax_image)|e }}" class="jl-background-norepeat{{ particle.parallax_bg_overlay ? ' jl-position-relative' : '' }}{{padding}} jl-background-{{particle.background_image_position|e}}{% if particle.background_image_size != 'auto' %} jl-background-{{particle.background_image_size|e}}{% endif %}{% if particle.parallax_bg_visibility != 'always' %} jl-background-image@{{particle.parallax_bg_visibility|e}}{% endif %}{% if particle.vertical_alignment != 'none' %} jl-flex jl-flex-{{particle.vertical_alignment|e}}{% endif %}{% if particle.parallax_text_color != 'default' %} jl-{{particle.parallax_text_color|e}}{% endif %}{% if particle.blendmode != 'inherit' %} jl-background-blend-{{particle.blendmode|e}}{% endif %}" {{parallax_bg_color|default('')|raw}}{% if particle.horizontal_start or particle.horizontal_end or particle.vertical_start or particle.vertical_end or particle.parallax_easing %} jl-parallax="{% if particle.horizontal_start or particle.horizontal_end %}bgx: {{particle.horizontal_start|e}},{{particle.horizontal_end|e}};{% endif %}{% if particle.vertical_start or particle.vertical_end %}bgy: {{particle.vertical_start|e}},{{particle.vertical_end|e}};{% endif %}{% if particle.parallax_bg_breakpoint != 'always' %} media: @{{particle.parallax_bg_breakpoint|e}};{% endif %}{{parallax_easing}}" {% endif %} jl-img {{viewport_height|raw}}>
{{parallax_overlay|raw}}
{% if particle.container_maxwidth != 'none' %}
<div class="{{container_maxwidth}}">
{% endif %}
{% endif %}
{% endset %}

{# End Parallax Background #}
{% set endparallaxbackground %}
{% if particle.parallax_image %}
{% if particle.container_maxwidth != 'none' %}
</div>
{% endif %}
</div>
{% endif %}
{% endset %}

{# Set Horizontal #}
{% set pahorizontal %}
{% if particle.pa_horizontal_start or particle.pa_horizontal_end %}x: {% if particle.pa_horizontal_start == '' %}0{% else %}{{particle.pa_horizontal_start }}{% endif %},{% if particle.pa_horizontal_end == '' %}0{% else %}{{particle.pa_horizontal_end }}{% endif %};{% endif %}
{% endset %}

{# Set Vertical #}
{% set pavertical %}
{% if particle.pa_vertical_start or particle.pa_vertical_end %}y: {% if particle.pa_vertical_start == '' %}0{% else %}{{particle.pa_vertical_start }}{% endif %},{% if particle.pa_vertical_end == '' %}0{% else %}{{particle.pa_vertical_end }}{% endif %};{% endif %}
{% endset %}

{# Set Scale #}
{% set scale %}
{% if particle.scale_start or particle.scale_end %}scale: {% if particle.scale_start == '' %}1{% else %}{{particle.scale_start / 100 }}{% endif %},{% if particle.scale_end == '' %}1{% else %} {{particle.scale_end / 100 }}{% endif %};{% endif %}
{% endset %}

{# Set Rotate #}
{% set rotate %}{% if particle.rotate_start or particle.rotate_end %}
rotate: {% if particle.rotate_start == '' %}0{% else %}{{particle.rotate_start}}{% endif %},{% if particle.rotate_end == '' %}0{% else %}{{particle.rotate_end}}{% endif %};{% endif %}
{% endset %}

{# Set Opacity #}
{% set opacity %}
{% if particle.opacity_start or particle.opacity_end %}opacity: {% if particle.opacity_start == '' %}1{% else %}{{particle.opacity_start / 100 }}{% endif %},{% if particle.opacity_end == '' %}1{% else %}{{particle.opacity_end / 100 }}{% endif %};{% endif %}
{% endset %}

{# Set Scrollspy Animation #}
{% set scrollspy_cls = particle.animation != 'inherit' and particle.animation != 'parallax' ? ' jl-scrollspy-class' %}

{# Set Animation #}
{% set animation %}
{% if particle.animation != 'inherit' and particle.animation != 'parallax' %} jl-scrollspy="target: [jl-scrollspy-class]; cls: jl-animation-{{particle.animation|e}};{% if particle.animation_repeat == 'enabled' %} repeat: true;{% endif %} delay:{% if particle.delay_element_animations %} {{particle.animation_delay|default('200')|e}};{% else %} false;{% endif %}"
{% elseif particle.animation == 'parallax' %}
{% if particle.pa_horizontal_start or particle.pa_horizontal_end or particle.pa_vertical_start or particle.pa_vertical_end or particle.scale_start or particle.scale_end or particle.rotate_start or particle.rotate_end or particle.opacity_start or particle.opacity_end or particle.easing or particle.pa_viewport or particle.pa_breakpoint %} jl-parallax="{{pahorizontal}}{{pavertical}}{{scale}}{{rotate}}{{opacity}}{% if particle.easing == '' %}{% else %}easing: {{ particle.easing / 100 }};{% endif %}{% if particle.pa_viewport != '' %}viewport:{{ particle.pa_viewport / 100 }};{% endif %}{% if particle.pa_breakpoint != 'always' %}media: @{{particle.pa_breakpoint|e}}{% endif %}"{% endif %}
{% endif %}
{% endset %}

{# Set Particle Alignment #}
{% set particle_alignment %}
{% if particle.align != 'inherit' %} jl-text-{{particle.align|e}}{% if particle.breakpoint != 'always' %}@{{particle.breakpoint|e}}{% endif %}{% endif %}{% if particle.align != 'inherit' and particle.breakpoint != 'always' %}{% if particle.fallback != 'inherit' %} jl-text-{{particle.fallback|e}}{% endif %}{% endif %}
{% endset %}

{# set Particle Title Style #}
{% set particle_title_style %}
{% if particle.particle_title %}
<{{particle.particle_title_element|e}} id="{{ id }}" class="g5-particle-title{% if particle.particle_title_align != 'inherit' %} jl-text-{{particle.particle_title_align|e}}{% endif %}{% if particle.particle_predefined_color != 'default' %} jl-text-{{particle.particle_predefined_color|e}}{% endif %}{% if particle.particle_title_style != 'default' %} jl-{{particle.particle_title_style|e}}{% endif %}{% if particle.particle_title_decoration != 'none' %} jl-heading-{{particle.particle_title_decoration|e}}{% endif %}">
{% if particle.particle_title_decoration == 'line' %} <span>{{particle.particle_title|raw}}</span>
{% else %} {{particle.particle_title|raw}}
{% endif %}
</{{particle.particle_title_element|e}}>
{% endif %}
{% endset %}

{% set slider_animation_set = particle.slider_animation_set == 'enabled' ? 'sets: true;' %}
{% set slider_animation_center = particle.slider_animation_center == 'enabled' ? 'center: true;' %}
{% set slider_animation_finite = particle.slider_animation_finite == 'enabled' ? 'finite: true;' %}
{% set slider_animation_autoplay = particle.slider_animation_autoplay == 'enabled' ? 'autoplay: true;' %}
{% set slider_animation_interval = (particle.slider_animation_autoplay == 'enabled' and particle.slider_animation_interval) ? 'autoplay-interval:' ~ particle.slider_animation_interval * 1000 ~ ';' %}
{% set slider_pause_onhover = particle.slider_pause_onhover == 'disabled' ? 'pauseOnHover: false;' %}
{% set velocity = particle.slider_velocity ? 'velocity:' ~ particle.slider_velocity / 100 ~ ';' %}

{% set imagewidth = particle.image_width ? 'width="' ~ particle.image_width ~ '"' %}
{% set imageheight = particle.image_height ? 'height="' ~ particle.image_height ~ '"' %}
{# Set Masonry #}
{% set grid_masonry = particle.grid_masonry ? 'masonry: 1;' %}

{# Set Transition for title/meta/content if overlay on hover is set #}
{% if particle.overlay_hover == '1' %}
{% set title_transition = particle.title_transition != 'none' ? ' jl-transition-' ~ particle.title_transition|e ~ '' %}
{% set meta_transition = particle.meta_transition != 'none' ? ' jl-transition-' ~ particle.meta_transition|e ~ '' %}
{% set content_transition = particle.content_transition != 'none' ? ' jl-transition-' ~ particle.content_transition|e ~ '' %}
{% set link_transition = particle.link_transition != 'none' ? ' jl-transition-' ~ particle.link_transition|e ~ '' %}
{% set overlay_transition = ' jl-transition-' ~ particle.overlay_transition|e ~ '' %}
{% endif %}

{% set tab_transition = particle.overlay_hover or particle.image_transition != 'none' ? ' tabindex="0"' %}
{% set toggle_transition = particle.overlay_hover or particle.image_transition != 'none' ? ' jl-transition-toggle' %}

{# Image Transition #}
{% set image_transition = particle.image_transition != 'none' ? ' jl-transition-' ~ particle.image_transition|e ~ ' jl-transition-opaque' %}

{# Image Box Shadow #}
{% set image_boxshadow = particle.box_shadow != 'none' ? ' jl-box-shadow-' ~ particle.box_shadow|e ~ '' %}
{% set image_boxshadow_hover = particle.box_shadow_hover != 'none' ? ' jl-box-shadow-hover-' ~ particle.box_shadow_hover|e ~ '' %}

{# Set Item Max Width Class #}
{% set item_maxwidth_cls = particle.item_maxwidth != 'none' ? ' jl-margin-auto jl-width-' ~ particle.item_maxwidth|e ~ '' %}
{% set grid_parallax = particle.grid_parallax ? ' parallax: ' ~ particle.grid_parallax ~ ';' %}

{# Set Item Content #}
{% set item_content %}
{% for item in particle.items %}

{# Set Meta Content #}
{% set item_meta %}
{% if item.meta %}
<div class="tm-meta{{meta_text_transform}}{% if particle.meta_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.meta_margin_top|e }}-top{% endif %}{% if particle.pre_meta_color != 'default' %} jl-text-{{ particle.pre_meta_color|e }}{% endif %}{% if particle.meta_style != 'default' %} jl-{{ particle.meta_style|e }}{% endif %}">
    {{item.meta|raw}}
</div>
{% endif %}
{% endset %}

{% if particle.grid_type == 'slider' %}
<li class="tm-item-wrapper{% if particle.phone_portrait %} jl-width-1-{{ particle.phone_portrait|e }}{% endif %}{% if particle.phone_landscape != 'inherit' %} jl-width-1-{{ particle.phone_landscape|e }}@s{% endif %}{% if particle.tablet_landscape != 'inherit' %} jl-width-1-{{ particle.tablet_landscape|e }}@m{% endif %}{% if particle.desktop != 'inherit' %} jl-width-1-{{ particle.desktop|e }}@l{% endif %}{% if particle.large_desktop != 'inherit' %} jl-width-1-{{ particle.large_desktop|e }}@xl{% endif %}">
{% else %}
<div class="tm-item-wrapper">
{% endif %}

<div class="tm-item{% if item.item_class %} {{ item.item_class }}{% endif %}">

{% if particle.overlay_mode == 'cover' or particle.overlay_mode == 'caption' %}
<div class="tm-data-image{{item_maxwidth_cls}}{{image_boxshadow}}{{image_boxshadow_hover}}" data-image="{{ url(item.image)|e }}" href="#" data-title="{{item.title}}" data-caption="{{item.caption}}"{{scrollspy_cls}}>

<div class="tm-item-inner jl-inline-clip{% if particle.overlay_color != 'default' %} jl-{{ particle.overlay_color|e }}{% endif %}{{toggle_transition}}"{{tab_transition|raw}}>

{% if item.image_thumbnail %}
<img {{imagewidth|raw}} {{imageheight|raw}} src="{{ url(item.image_thumbnail)|e }}" alt="{{ item.image_alt|e }}" class="tm-image{{image_transition}}" data-image="{{ url(item.image)|e }}" data-title="{{item.title}}" data-caption="{{item.caption}}">
{% else %}
{% if item.image %}<img {{imagewidth|raw}} {{imageheight|raw}} src="{{ url(item.image)|e }}" alt="{{ item.image_alt|e }}" class="tm-image{{image_transition}}"  data-image="{{ url(item.image)|e }}" data-title="{{item.title}}" data-caption="{{item.caption}}">{% endif %}
{% endif %}

{# Load Overlay Style #}
{% if particle.overlay_style == 'none' %}
<div class="{% if particle.overlay_position %}jl-position-{{ particle.overlay_position|e }}{% endif %}">

<div class="jl-panel{% if particle.overlay_padding == 'default' %} jl-padding{% else %} jl-padding-{{ particle.overlay_padding|e }}{% endif %}{% if particle.overlay_maxwidth != 'none' %} jl-width-{{ particle.overlay_maxwidth|e }}{% endif %}{{overlay_transition}} jl-margin-remove-first-child">

{% else %}

{% if particle.overlay_mode == 'cover' %}
<div class="jl-position-cover{% if particle.overlay_margin != 'none' %} jl-position-{{ particle.overlay_margin|e }}{% endif %}{% if particle.overlay_style %} {{ particle.overlay_style|e }}{% endif %}{{overlay_transition}}"></div>
{% endif %}

<div class="{% if particle.overlay_position %}jl-position-{{ particle.overlay_position|e }}{% endif %}{% if particle.overlay_margin != 'none' %} jl-position-{{ particle.overlay_margin|e }}{% endif %}">

  {% if particle.overlay_mode == 'cover' %}
  <div class="jl-overlay{% if particle.overlay_padding != 'default' %} jl-padding-{{ particle.overlay_padding|e }}{% endif %}{% if particle.overlay_maxwidth != 'none' %} jl-width-{{ particle.overlay_maxwidth|e }}{% endif %}{% if particle.animate_background == false %}{{overlay_transition}}{% endif %} jl-margin-remove-first-child">
  {% else %}
  <div class="jl-overlay{% if particle.overlay_padding != 'default' %} jl-padding-{{ particle.overlay_padding|e }}{% endif %}{% if particle.overlay_maxwidth != 'none' %} jl-width-{{ particle.overlay_maxwidth|e }}{% endif %}{% if particle.overlay_style %} {{ particle.overlay_style|e }}{% endif %}{{overlay_transition}} jl-margin-remove-first-child">
  {% endif %}

{% endif %}

{% if particle.meta_alignment == 'top' %}
    {{item_meta}}
{% endif %}

{% if item.title %}
<{{particle.title_element|e}} class="tm-title jl-margin-remove-bottom{{title_text_transform}}{% if particle.title_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.title_margin_top|e }}-top{% endif %}{% if particle.title_color != 'default' %} jl-text-{{particle.title_color|e}}{% endif %}{% if particle.title_style != 'default' %} jl-{{particle.title_style|e}}{% endif %}{% if particle.title_decoration != 'none' %} jl-heading-{{particle.title_decoration|e}}{% endif %}">
{% if particle.title_decoration == 'line' %} <span>{{ item.title|raw }}</span>
{% else %}
	{{ item.title|raw }}
{% endif %}
</{{particle.title_element|e}}>
{% endif %}

{% if particle.meta_alignment == 'bottom' %}
    {{item_meta}}
{% endif %}

{% if item.caption %}
<div class="tm-content jl-panel{{content_text_transform}}{% if particle.content_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.content_margin_top|e }}-top{% endif %}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}">{{ item.caption|raw }}</div>
{% endif %}

{% if particle.meta_alignment == 'content' %}
    {{item_meta}}
{% endif %}

</div>
</div>
{# End Overlay Style #}

</div>

</div>

{% else %}

{% if item.image_thumbnail %}
<img {{imagewidth|raw}} {{imageheight|raw}} src="{{ url(item.image_thumbnail)|e }}" alt="{{ item.image_alt|e }}" class="tm-image{{image_transition}}" data-image="{{ url(item.image)|e }}" data-title="{{item.title}}" data-caption="{{item.caption}}">
{% else %}
{% if item.image %}<img {{imagewidth|raw}} {{imageheight|raw}} src="{{ url(item.image)|e }}" alt="{{ item.image_alt|e }}" class="tm-image{{image_transition}}" data-image="{{ url(item.image)|e }}" data-title="{{item.title}}" data-caption="{{item.caption}}">{% endif %}
{% endif %}

{% if particle.meta_alignment == 'top' %}
{{item_meta}}
{% endif %}

{% if item.title %}
<{{particle.title_element|e}} class="tm-title jl-margin-remove-bottom{{title_text_transform}}{% if particle.title_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.title_margin_top|e }}-top{% endif %}{% if particle.title_color != 'default' %} jl-text-{{particle.title_color|e}}{% endif %}{% if particle.title_style != 'default' %} jl-{{particle.title_style|e}}{% endif %}{% if particle.title_decoration != 'none' %} jl-heading-{{particle.title_decoration|e}}{% endif %}">
{% if particle.title_decoration == 'line' %} <span>{{ item.title|raw }}</span>
{% else %}
	{{ item.title|raw }}
{% endif %}
</{{particle.title_element|e}}>
{% endif %}

{% if particle.meta_alignment == 'bottom' %}
    {{item_meta}}
{% endif %}

{% if item.caption %}
<div class="tm-content jl-panel{{content_text_transform}}{% if particle.content_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.content_margin_top|e }}-top{% endif %}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}">{{ item.caption|raw }}</div>
{% endif %}

{% if particle.meta_alignment == 'content' %}
    {{item_meta}}
{% endif %}

{% endif %}

</div>
{% if particle.grid_type == 'slider' %}
</li>
{% else %}
</div>
{% endif %}

{% endfor %}
{% endset %}

{% set grid_column_gap = particle.grid_column_gap != 'default' ? ' jl-grid-column-' ~ particle.grid_column_gap ~ '' %}
{% set grid_row_gap = particle.grid_row_gap != 'default' ? ' jl-grid-row-' ~ particle.grid_row_gap ~ '' %}

{% if ( particle.grid_column_gap == particle.grid_row_gap ) and not (particle.grid_column_gap == 'default' and particle.grid_row_gap == 'default') %}
    {% set grid_cr_gap = ' jl-grid-' ~ particle.grid_column_gap ~ '' %}
{% else %}
    {% set grid_cr_gap = grid_column_gap ~ grid_row_gap %}
{% endif %}

{% set center_columns = particle.center_columns ? ' jl-flex-center' %}
{% set center_rows = particle.center_rows ? ' jl-flex-middle' %}

{% block particle %}
{% if particle.enabled %}
{{parallaxbackground}}
{{particle_title_style}}
{% if particle.grid_type == 'slider' %}
<div id="{{ id }}" class="tm-intense-wrapper{{content_maxwidth}}{% if particle.class %} {{ particle.class }}{% endif %}{{particle_alignment}}{% if particle.margin == 'inherit' %}{% elseif particle.margin == 'default' %} jl-margin{% else %} jl-margin-{{particle.margin|e}}{% endif %}{% if particle.visibility != 'inherit' %} jl-visible@{{particle.visibility|e}}{% endif %}" jl-slider="{{slider_animation_set}}{{slider_animation_center}}{{slider_animation_finite}}{{velocity}}{{slider_animation_autoplay}}{{slider_animation_interval}}{{slider_pause_onhover}}"{{animation}}>

<div class="jl-position-relative">

{# Load Outside container #}

{% if particle.slidenav_position == 'outside' %}
    <div class="jl-slider-container">
{% endif %}

{# End outside #}

<ul class="jl-slider-items jl-grid{{ particle.grid_divider ? ' jl-grid-divider' : '' }}{{grid_column_gap}}"{{slider_viewport}}>
    {{item_content}}
</ul>

{% if particle.slidenav_position == 'outside' %}
    </div>
{% endif %}

{% if particle.slidenav_icon_left and particle.slidenav_icon_right %}
{% set slidenav_icon_left = '<i class="' ~ particle.slidenav_icon_left ~ '" aria-hidden="true"></i>' %}
{% set slidenav_icon_right = '<i class="' ~ particle.slidenav_icon_right ~ '" aria-hidden="true"></i>' %}
{% else %}
{% set slidenav_large_style = particle.slidenav_large_style ? ' jl-slidenav-large' %}
{% set slidenav_next = 'jl-slidenav-next' %}
{% set slidenav_prev = 'jl-slidenav-previous' %}
{% endif %}

{% set slidenav_text_color = particle.slideshow_text_color != 'default' ? ' jl-' ~ particle.slideshow_text_color ~ '' %}

{# Slidenav #}
{% if particle.slidenav_position != 'none' %}
{% if particle.slidenav_position == 'default' %}
<div class="{% if particle.slidenav_breakpoint != 'always' %}jl-visible@{{particle.slidenav_breakpoint|e}}{% endif %}{{ particle.slidenav_hover ? ' jl-hidden-hover jl-hidden-touch' : '' }}{{slidenav_text_color}}">
<a class="tm-slidenav{{ slidenav_large_style }}{% if particle.slidenav_margin != 'none' %} jl-position-{{ particle.slidenav_margin|e }}{% endif %} jl-position-center-left" href="#" {{slidenav_prev}} jl-slider-item="previous">{{slidenav_icon_left|raw}}</a>
<a class="tm-slidenav{{ slidenav_large_style }}{% if particle.slidenav_margin != 'none' %} jl-position-{{ particle.slidenav_margin|e }}{% endif %} jl-position-center-right" href="#" {{slidenav_next}} jl-slider-item="next">{{slidenav_icon_right|raw}}</a>
</div>
{% elseif particle.slidenav_position == 'outside' %}
<div class="{% if particle.slidenav_breakpoint != 'always' %}jl-visible@{{particle.slidenav_breakpoint|e}}{% endif %}{% if particle.slidenav_outside_color != 'default' %} jl-{{particle.slidenav_outside_color|e}}{% endif %}">
<a class="tm-slidenav{{ slidenav_large_style }}{% if particle.slidenav_margin != 'none' %} jl-position-{{ particle.slidenav_margin|e }}{% endif %} jl-position-center-left" href="#" {{slidenav_prev}} jl-slider-item="previous" jl-toggle="cls: jl-position-center-left-out jl-position-center-left; mode: media; media:{% if particle.slidenav_outside_breakpoint != 'always' %} @{{particle.slidenav_outside_breakpoint|e}}{% endif %}">{{slidenav_icon_left|raw}}</a>
<a class="tm-slidenav{{ slidenav_large_style }}{% if particle.slidenav_margin != 'none' %} jl-position-{{ particle.slidenav_margin|e }}{% endif %} jl-position-center-right" href="#" {{slidenav_next}} jl-slider-item="next" jl-toggle="cls: jl-position-center-right-out jl-position-center-right; mode: media; media:{% if particle.slidenav_outside_breakpoint != 'always' %} @{{particle.slidenav_outside_breakpoint|e}}{% endif %}">{{slidenav_icon_right|raw}}</a>
</div>
{% else %}
<div class="jl-slidenav-container{% if particle.slidenav_margin != 'none' %} jl-position-{{ particle.slidenav_margin|e }}{% endif %} jl-position-{{ particle.slidenav_position|e }}{% if particle.slidenav_breakpoint != 'always' %} jl-visible@{{particle.slidenav_breakpoint|e}}{% endif %}{{ particle.slidenav_hover ? ' jl-hidden-hover jl-hidden-touch' : '' }}{{slidenav_text_color}}">
<a class="tm-slidenav{{ slidenav_large_style }}" href="#" {{slidenav_prev}} jl-slider-item="previous">{{slidenav_icon_left|raw}}</a>
<a class="tm-slidenav{{ slidenav_large_style }}" href="#" {{slidenav_next}} jl-slider-item="next">{{slidenav_icon_right|raw}}</a>
</div>
{% endif %}
{% endif %}

{# End Slidenav #}

</div>

{# Navigation #}
{% if particle.navigation == 'enabled' %}
{% if particle.navigation_color != 'default' %}
    <div class="jl-{{particle.navigation_color|e}}">
{% endif %}
<ul class="tm-nav jl-slider-nav jl-dotnav{% if particle.navigation_position %} jl-flex-{{ particle.navigation_position|e }}{% endif %}{% if particle.navigation_margin %} jl-margin-{{ particle.navigation_margin|e }}{% endif %}{% if particle.navigation_breakpoint != 'always' %} jl-visible@{{particle.navigation_breakpoint|e}}{% endif %}" jl-margin>
{% for item in particle.carouselitems %}
<li jl-slider-item="{{ loop.index0 }}">{% if item.image_alt %}<a href="#" jl-tooltip="{{ item.image_alt|raw }}"></a> {% else %} <a href="#"></a> {% endif %}</li>
{% endfor %}
</ul>

{% if particle.navigation_color != 'default' %}
    </div>
{% endif %}

{% endif %}
{# End Navigation #}

</div>

{% else %}
<div id="{{ id }}" class="tm-content-{{id}} tm-intense-wrapper{{content_maxwidth}}{% if particle.class %} {{ particle.class }}{% endif %}{{ particle.grid_divider ? ' jl-grid-divider' : '' }}{{grid_cr_gap}}{{center_columns}}{{center_rows}}{% if particle.phone_portrait %} jl-child-width-1-{{ particle.phone_portrait|e }}{% endif %}{% if particle.phone_landscape != 'inherit' %} jl-child-width-1-{{ particle.phone_landscape|e }}@s{% endif %}{% if particle.tablet_landscape != 'inherit' %} jl-child-width-1-{{ particle.tablet_landscape|e }}@m{% endif %}{% if particle.desktop != 'inherit' %} jl-child-width-1-{{ particle.desktop|e }}@l{% endif %}{% if particle.large_desktop != 'inherit' %} jl-child-width-1-{{ particle.large_desktop|e }}@xl{% endif %}{{particle_alignment}}{% if particle.margin == 'inherit' %}{% elseif particle.margin == 'default' %} jl-margin{% else %} jl-margin-{{particle.margin|e}}{% endif %}{% if particle.visibility != 'inherit' %} jl-visible@{{particle.visibility|e}}{% endif %}"{{animation}} jl-grid="{{grid_masonry}}{{grid_parallax}}">
    {{item_content}}
</div>
{% endif %}
{{endparallaxbackground}}
{% endif %}
{% endblock %}
