{% extends 'base.html.twig' %}
{% block title %}Galerie{% endblock %}
{% block body %}
<div class="container mt-2" data-controller="galery">
<div class="row">
<div class="col-12 header-title">
<h1>Galerie photos</h1>
</div>
</div>
{% if images is defined and images is not empty %}
<div class="row" id="gallery" data-galery-target="container">
{% for image in images %}
<div class="col-6 col-md-4 col-lg-3 gallery-item" data-galery-target="item">
<img src="{{ asset('uploads/galery/' ~ image.fileName) }}" alt="{{ image.fileName }}"
class="img-fluid rounded shadow-sm">
</div>
{% endfor %}
</div>
<div id="lightbox" class="lightbox hidden" data-galery-target="lightbox">
<img id="lightbox-image" data-galery-target="lightboxImage">
</div>
{% else %}
<div class="row">
<div class="col-12 text-center">
<span>Il n'y a pas d'images pour le moment.</span>
</div>
</div>
{% endif %}
</div>
{% endblock %}