<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
</label>
{{ pimcore_relations('gallery', {'types': ['asset'], 'subtyps': ['image'], 'title': 'Images'}) }}
</div>
{% endblock %}
{% endembed %}
<div class="container-sm container">
{{ include('Includes/title-block-editable.html.twig') }}
</div>
<div class="overflow-hidden">
<div class="tile-gallery__outer-wrapper">
<div class="">
<div class="tile-gallery js-lightbox {{ styleModifier | default(null) }}">
<div class="tile-gallery__container position-relative js-scrolling-row">
<div class="tile-gallery__wrapper row scrolling-row scrolling-row--invisible-scrollbar js-scrolling-row__row">
{% for image in pimcore_relations('gallery').elements %}
<div class="col-md-auto col-5 scrolling-row__item js-scrolling-row__item">
{% do jsConfig().add('lightbox', true) %}
{% set lightBoxSrc = image.thumbnail('lightbox') %}
{% set description = getImageDescription(image, true) %}
<figure class="tile-gallery-item">
<button class="tile-gallery__zoom-btn">
<span class="icon icon-expand" aria-hidden="true"></span>
</button>
<a href="{{ lightBoxSrc }}"
data-sub-html="{{ description ?: '' }}"
class="js-lightbox__item embed-responsive-1by1 embed-responsive tile-gallery-item__img-wrapper">
{{ image.thumbnail('tile-gallery-item').html({
imgAttributes: {
class: 'js-lazy-img embed-responsive-item',
title: description|default(''),
alt: description|default('')
},
lowQualityPlaceholder: true
}) | raw }}
</a>
{% if description %}
<figcaption>
{{ description }}
</figcaption>
{% endif %}
</figure>
</div>
{% endfor %}
</div>
<div class="tile-gallery__navigation">
<button class="tile-gallery__btn tile-gallery__btn--prev js-scrolling-row__prev"><span class="icon icon-arrow-right" aria-label="Previous"></span></button>
<button class="tile-gallery__btn tile-gallery__btn--next js-scrolling-row__next"><span class="icon icon-arrow-right" aria-label="Next"></span></button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>