{% extends 'base.html.twig' %}
{% block page_contents %}
<section class="section section-page-title bg-gradient py-xl-5 py-4" data-aos='fade-down'>
<div class="container">
<div class="row">
<div class="col-12 text-center text-white">
<h1 class="page-name font-weight-bold my-2">{% trans %}ÉSTIAM en images{% endtrans %} !</h1>
</div>
</div>
</div>
</section>
{% if videos %}
<section class="section section-gallery-carousel pt-4 pb-4">
<div class="container">
<div class="row">
<div class="col-12 ">
<div class="slider slider-gallery pb-md-4">
{% for video in videos %}
<div>
<div>
<div class="embed-responsive embed-responsive-16by9 hvr-glow">
<iframe loading="lazy" class="embed-responsive-item" src="{{ video.libraryUrl | extractYoutubeId }}?rel=0&enablejsapi=1" allowfullscreen></iframe>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="col-12 text-md-right text-center link-more mb-4 mt-md-0 mt-2 position-relative">
<a href="https://www.youtube.com/channel/UC6TdoKYG0VjhV2GRP6wTBrQ/" target="_blank">{% trans %}Plus de vidéos sur notre YouTube{% endtrans %}<i class="fas fa-arrow-right font-12 ml-2"></i></a>
</div>
</div>
<div class="row"></div>
</div>
</section>
{% endif %}
{% if photos %}
<section class="section section-gallery overflow-hidden">
<div class="container-fluid px-0 position-relative">
<div class="row flex-wrap">
{% for photo in photos %}
<div class="col"><img src="{{ photo.libraryUrl }}" onerror="this.onerror=null;this.src='{{ asset('assets/images/no-img/news.jpg') }}';"></div>
{% endfor %}
</div>
<a href="https://www.instagram.com/estiamofficiel/" target="_blank" class="glow-on-hover position-absolute text-nowrap text-center">{% trans %}Plus d'images sur notre Instagram {% endtrans %}›</a>
</div>
</section>
{% endif %}
{% endblock %}