{% if editmode %}
	{{ doc_editable('images', 'relations', {
		'types': ['asset'],
	}) }}
{% elseif(doc_editable('images', 'relations').getElements() is not empty) %}
	{% set images = doc_editable('images', 'relations').getElements() %}
	{% set galleryRelId = 'gallery-' ~ brick.index %}

	<div class="entry">
		<div class="row">
			{% for img in images %}
				<div class="col-lg-3">
					<a href="{{ img.getFrontendFullPath() }}" class="fancybox" rel="{{ galleryRelId }}">
						{{ utils_image(img, 'ArticleGalleryThumbnail') }}
					</a>
				</div>
			{% endfor %}
		</div>
	</div>
{% endif %}
