<div class="boldr-section boldr-gallery {{ boldr_cms_get_section_style_class(section.sectionStyle|default(boldr_cms_get_defaut_section_style())) }}">
{% if section.heading or section.subheading or renderedContent %}
<div class="boldr-gallery-heading">
{% include '@BoldrCms/section/_heading.html.twig' with {
style: section.headingStyle,
heading: section.heading,
subheading: section.subheading
} %}
{% if renderedContent %}
<div class="boldr-gallery-content">
{{ renderedContent }}
</div>
{% endif %}
</div>
{% endif %}
<div class="boldr-gallery-items">
{{ layout.html|raw }}
{% for attachment in fancyboxLinks %}
<a class="boldr-gallery-item-hidden" data-fancybox="gallery" href="{{ attachment.sizes|first }}" data-srcset="{% for key, s in attachment.sizesByWidth %}{% if not loop.first %}, {% endif %}{{ s|replace({' ': '%20'}) ~ ' ' ~ key ~ 'w' }}{% endfor %}">
<img src="{{ attachment.sizes|last }}" />
</a>
{% endfor %}
</div>
</div>