<section class="content-block js-fade-in {{ include('Layout/includes/editmode-box-classes.html.twig') }} {{ styleModifier | default(null) }} {{ not pimcore_input('anchorTitle').empty ? 'js-anchor-nav__item' : '' }}" {% if not pimcore_input('anchorTitle').empty %}data-anchor-nav-title="{{ pimcore_input('anchorTitle').frontend }}"{% endif %}>
{% embed 'Includes/editmode-settings.html.twig' %}
{% block additionalInfo %}
<div>
<label>
{{ pimcore_checkbox('titleBlockCentered') }} Center Headline?
</label>
</div>
<div>
<label>
Images
{{ pimcore_relations('gallery', {'types': ['asset'], 'subtyps': ['image']}) }}
</label>
</div>
{% endblock %}
{% endembed %}
<div class="container-sm container">
{{ include('Includes/title-block-editable.html.twig') }}
</div>
<div class="overflow-x-hidden ">
<div class="container-sm container">
<div class="js-render-template" style="min-height: 1px;">
<template class="js-render-template__template">
<div class="js-gallery gallery">
<div class="swiper-container js-gallery__slider gallery__container">
<div class="swiper-wrapper gallery__wrapper">
{% for image in pimcore_relations('gallery').elements %}
<div class="swiper-slide gallery-swiper-slide">
<div class="gallery-item">
<div class="gallery-item__counter">
<span class="text-primary">{{ loop.index }}</span>/{{ pimcore_relations('gallery').elements|length }}
</div>
<div class="embed-responsive-16by9 embed-responsive gallery-item__img-wrapper">
{% set description = getImageDescription(image, true) %}
{% set title = description %}
{% set alt = description %}
{{ image.thumbnail('gallery-item').html({
imgAttributes: {
class: 'js-lazy-img embed-responsive-item',
title: title,
alt: alt
},
lowQualityPlaceholder: true
}) | raw }}
</div>
{% set description = getImageDescription(image) %}
{% if description %}
<div class="gallery-item__text">
{{ description }}
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class="swiper-navigation gallery__swiper-navigation">
<button class="swiper-button swiper-button--prev gallery__btn js-gallery__prev"><span class="icon icon-arrow-right" aria-label="Previous"></span></button>
<button class="swiper-button swiper-button--next gallery__btn js-gallery__next"><span class="icon icon-arrow-right" aria-label="Next"></span></button>
</div>
</div>
</div>
</template>
</div>
</div>
</div>
</section>