templates/vitrine/pages/gallery.html.twig line 1

Open in your IDE?
  1. {# templates/faq/index.html.twig #}
  2. {% extends 'vitrine/base.html.twig' %}
  3. {% block title %}{% trans %}Galerie{% endtrans %}{% endblock %}
  4. {% block description %}{% trans %}Découvrez tout l'univers du spa à la bière{% endtrans %}{% endblock %}
  5. {% block stylesheets %}
  6.     {{ parent() }}
  7.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.2/css/lightgallery.min.css" integrity="sha512-F2E+YYE1gkt0T5TVajAslgDfTEUQKtlu4ralVq78ViNxhKXQLrgQLLie8u1tVdG2vWnB3ute4hcdbiBtvJQh0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  8. {% endblock %}
  9. {% block javascripts %}
  10.     {{ parent() }}
  11.     <script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.2/lightgallery.min.js" integrity="sha512-jEJ0OA9fwz5wUn6rVfGhAXiiCSGrjYCwtQRUwI/wRGEuWRZxrnxoeDoNc+Pnhx8qwKVHs2BRQrVR9RE6T4UHBg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  12. {% endblock %}
  13. {% block main %}
  14.     <div class="w-full flexcol items-center z-10 relative ">
  15.         <section class="flexcol gap-16 pt-32">
  16.             <h2 class="text-center w-full text-4xl">
  17.                 {% trans %}Galerie{% endtrans %}
  18.             </h2>
  19. {#            <div class="flex gap-10 flex-wrap w-full justify-center">#}
  20. {#                <a href="#" class="active clickable not-animate">{% trans %}Tous{% endtrans %}</a>#}
  21. {#                <a href="#" class"clickable not-animate">{% trans %}Paris{% endtrans %}</a>#}
  22. {#                <a href="#" class"clickable not-animate">{% trans %}Genève{% endtrans %}</a>#}
  23. {#                <a href="#" class"clickable not-animate">{% trans %}Lyon{% endtrans %}</a>#}
  24. {#                <a href="#" class"clickable not-animate">{% trans %}Strasbourg{% endtrans %}</a>#}
  25. {#            </div>#}
  26.             <div class="flexcol gap-16" data-town="{% trans %}Tous{% endtrans %}">
  27.                 <div id="gallery_taaka" class="flexcol gap-4" data-town="{% trans %}Paris{% endtrans %}">
  28.                     <div class="image-layout flexcol gap-4">
  29.                         <div class="grid grid-cols-1 md:grid-cols-3 gap-4 h-min overflow-hidden">
  30.                             <div class="flexcol h-full gap-4">
  31.                             <a href="{{asset('/vitrine/images/gallery/photo-13.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  32.                                 <img alt="Generique picture" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-13.jpg')}}" >
  33.                             </a>
  34.                             <a href="{{asset('/vitrine/images/gallery/photo-14.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  35.                                 <img alt="Generique picture" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-14.jpg')}}">
  36.                                 </a>
  37.                             </div>
  38.                             <div class="flexcol h-full gap-4">
  39.                             <a href="{{asset('/vitrine/images/gallery/photo-15.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  40.                                 <img alt="Generique picture" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-15.jpg')}}">
  41.                                 </a>
  42.                             <a href="{{asset('/vitrine/images/gallery/photo-16.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  43.                                 <img alt="Generique picture" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-16.jpg')}}">
  44.                                 </a>
  45.                             </div>
  46.                             <div class="flexcol h-full gap-4">
  47.                             <a href="{{asset('/vitrine/images/gallery/photo-17.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  48.                                 <img alt="Generique picture" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-17.jpg')}}">
  49.                                 </a>
  50.                             <a href="{{asset('/vitrine/images/gallery/photo-18.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  51.                                 <img alt="Generique picture" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-18.jpg')}}">
  52.                                 </a>
  53.                             </div>
  54.                         </div>
  55.                         <div class="grid grid-cols-1 md:grid-cols-3 gap-4 h-min overflow-hidden">
  56.                             <div class="flexcol h-full gap-4">
  57.                                 <a href="{{asset('/vitrine/images/gallery/photo-19.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  58.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-19.jpg')}}">
  59.                                 </a>
  60.                                 <a href="{{asset('/vitrine/images/gallery/photo-20.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  61.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-20.jpg')}}">
  62.                                 </a>
  63.                             </div>
  64.                             <div class="flexcol h-full gap-4">
  65.                                 <a href="{{asset('/vitrine/images/gallery/photo-21.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  66.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-21.jpg')}}" >
  67.                                 </a>
  68.                                 <a href="{{asset('/vitrine/images/gallery/photo-22.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  69.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-22.jpg')}}">
  70.                                 </a>
  71.                             </div>
  72.                             <div class="flexcol h-full gap-4">
  73.                                 <a href="{{asset('/vitrine/images/gallery/photo-23.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  74.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-23.jpg')}}" >
  75.                                 </a>
  76.                                 <a href="{{asset('/vitrine/images/gallery/photo-24.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  77.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover" src="{{asset('/vitrine/images/gallery/photo-24.jpg')}}">
  78.                                 </a>
  79.                             </div>
  80.                         </div>
  81.                     </div>
  82.                     <div class="image-layout hidden flexcol gap-4">
  83.                         <div class="grid grid-cols-1 md:grid-cols-3 gap-4 h-min overflow-hidden">
  84.                             <div class="flexcol h-full gap-4">
  85.                                 <a href="{{asset('/vitrine/images/gallery/photo-1.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  86.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-1.jpg')}}" >
  87.                                 </a>
  88.                                 <a href="{{asset('/vitrine/images/gallery/photo-2.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  89.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-2.jpg')}}">
  90.                                 </a>
  91.                             </div>
  92.                             <div class="flexcol h-full gap-4">
  93.                                 <a href="{{asset('/vitrine/images/gallery/photo-3.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  94.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-3.jpg')}}">
  95.                                 </a>
  96.                                 <a href="{{asset('/vitrine/images/gallery/photo-4.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  97.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-4.jpg')}}">
  98.                                 </a>
  99.                             </div>
  100.                             <div class="flexcol h-full gap-4">
  101.                                 <a href="{{asset('/vitrine/images/gallery/photo-5.webp')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  102.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-5.webp')}}" >
  103.                                 </a>
  104.                                 <a href="{{asset('/vitrine/images/gallery/photo-6.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  105.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-6.jpg')}}" >
  106.                                 </a>
  107.                             </div>
  108.                         </div>
  109.                         <div class="grid grid-cols-1 md:grid-cols-3 gap-4 h-min overflow-hidden">
  110.                             <div class="flexcol h-full gap-4">
  111.                                 <a href="{{asset('/vitrine/images/gallery/photo-7.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  112.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-7.jpg')}}">
  113.                                 </a>
  114.                                 <a href="{{asset('/vitrine/images/gallery/photo-8.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  115.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-8.jpg')}}">
  116.                                 </a>
  117.                             </div>
  118.                             <div class="flexcol h-full gap-4">
  119.                                 <a href="{{asset('/vitrine/images/gallery/photo-9.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  120.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-9.jpg')}}" >
  121.                                 </a>
  122.                                 <a href="{{asset('/vitrine/images/gallery/photo-10.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  123.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-10.jpg')}}">
  124.                                 </a>
  125.                             </div>
  126.                             <div class="flexcol h-full gap-4">
  127.                                 <a href="{{asset('/vitrine/images/gallery/photo-11.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  128.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-11.jpg')}}" >
  129.                                 </a>
  130.                                 <a href="{{asset('/vitrine/images/gallery/photo-12.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  131.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-12.jpg')}}">
  132.                                 </a>
  133.                             </div>
  134.                         </div>
  135.                     </div>
  136.                     <div class="image-layout hidden flexcol gap-4">
  137.                         <div class="grid grid-cols-1 md:grid-cols-3 gap-4 h-min overflow-hidden">
  138.                             <div class="flexcol h-full gap-4">
  139.                                 <a href="{{asset('/vitrine/images/gallery/photo-25.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  140.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-25.jpg')}}" >
  141.                                 </a>
  142.                                 <a href="{{asset('/vitrine/images/gallery/photo-26.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  143.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-26.jpg')}}">
  144.                                 </a>
  145.                             </div>
  146.                             <div class="flexcol h-full gap-4">
  147.                                 <a href="{{asset('/vitrine/images/gallery/photo-27.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  148.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-27.jpg')}}">
  149.                                 </a>
  150.                                 <a href="{{asset('/vitrine/images/gallery/photo-28.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  151.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-28.jpg')}}">
  152.                                 </a>
  153.                             </div>
  154.                             <div class="flexcol h-full gap-4">
  155.                                 <a href="{{asset('/vitrine/images/gallery/photo-29.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  156.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-29.jpg')}}" >
  157.                                 </a>
  158.                                 <a href="{{asset('/vitrine/images/gallery/photo-30.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  159.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-30.jpg')}}" >
  160.                                 </a>
  161.                             </div>
  162.                         </div>
  163.                         <div class="grid grid-cols-1 md:grid-cols-3 gap-4 h-min overflow-hidden">
  164.                             <div class="flexcol h-full gap-4">
  165.                                 <a href="{{asset('/vitrine/images/gallery/photo-31.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  166.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-31.jpg')}}">
  167.                                 </a>
  168.                                 <a href="{{asset('/vitrine/images/gallery/photo-32.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  169.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-32.jpg')}}">
  170.                                 </a>
  171.                             </div>
  172.                             <div class="flexcol h-full gap-4">
  173.                                 <a href="{{asset('/vitrine/images/gallery/photo-33.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  174.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-33.jpg')}}" >
  175.                                 </a>
  176.                                 <a href="{{asset('/vitrine/images/gallery/photo-34.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  177.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-34.jpg')}}">
  178.                                 </a>
  179.                             </div>
  180.                             <div class="flexcol h-full gap-4">
  181.                                 <a href="{{asset('/vitrine/images/gallery/photo-35.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  182.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-35.jpg')}}" >
  183.                                 </a>
  184.                                 <a href="{{asset('/vitrine/images/gallery/photo-36.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  185.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-36.jpg')}}">
  186.                                 </a>
  187.                             </div>
  188.                         </div>
  189.                     </div>
  190.                     <div class="image-layout hidden flexcol gap-4">
  191.                         <div class="grid grid-cols-1 md:grid-cols-3 gap-4 h-min overflow-hidden">
  192.                             <div class="flexcol h-full gap-4">
  193.                                 <a href="{{asset('/vitrine/images/gallery/photo-37.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  194.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-37.jpg')}}" >
  195.                                 </a>
  196.                                 <a href="{{asset('/vitrine/images/gallery/photo-38.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  197.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-38.jpg')}}">
  198.                                 </a>
  199.                             </div>
  200.                             <div class="flexcol h-full gap-4">
  201.                                 <a href="{{asset('/vitrine/images/gallery/photo-39.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  202.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-39.jpg')}}">
  203.                                 </a>
  204.                                 <a href="{{asset('/vitrine/images/gallery/photo-40.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  205.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-40.jpg')}}">
  206.                                 </a>
  207.                             </div>
  208.                             <div class="flexcol h-full gap-4">
  209.                                 <a href="{{asset('/vitrine/images/gallery/photo-41.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  210.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-41.jpg')}}" >
  211.                                 </a>
  212.                                 <a href="{{asset('/vitrine/images/gallery/photo-42.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  213.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-42.jpg')}}" >
  214.                                 </a>
  215.                             </div>
  216.                         </div>
  217.                         <div class="grid grid-cols-1 md:grid-cols-3 gap-4 h-min overflow-hidden">
  218.                             <div class="flexcol h-full gap-4">
  219.                                 <a href="{{asset('/vitrine/images/gallery/photo-43.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  220.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-43.jpg')}}">
  221.                                 </a>
  222.                                 <a href="{{asset('/vitrine/images/gallery/photo-44.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  223.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-44.jpg')}}">
  224.                                 </a>
  225.                             </div>
  226.                             <div class="flexcol h-full gap-4">
  227.                                 <a href="{{asset('/vitrine/images/gallery/photo-45.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  228.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-45.jpg')}}" >
  229.                                 </a>
  230.                                 <a href="{{asset('/vitrine/images/gallery/photo-46.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  231.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-46.jpg')}}">
  232.                                 </a>
  233.                             </div>
  234.                             <div class="flexcol h-full gap-4">
  235.                                 <a href="{{asset('/vitrine/images/gallery/photo-47.jpg')}}" class="h-1/3 min-h-64 overflow-hidden" data-sub-html=" ">
  236.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-47.jpg')}}" >
  237.                                 </a>
  238.                                 <a href="{{asset('/vitrine/images/gallery/photo-48.jpg')}}" class="h-2/3 min-h-[550px] overflow-hidden" data-sub-html=" ">
  239.                                     <img alt="Generique picture" loading="lazy" class="h-full w-full object-cover image-brightness" src="{{asset('/vitrine/images/gallery/photo-48.jpg')}}">
  240.                                 </a>
  241.                             </div>
  242.                         </div>
  243.                     </div>
  244.                 </div>
  245.                 <div class="flex justify-center w-full">
  246.                     <button id="load-more-images" type="button" class="px-12 py-3 font-semibold bg-vitrineOrange text-sm w-max hover:opacity-100 hover:text-vitrineOrange hover:bg-white relative fade-in">
  247.                         {% trans %}Plus{% endtrans %}
  248.                     </button>
  249.                 </div>
  250.             </div>
  251.         </section>
  252.         {% include "vitrine/layout/footer.html.twig" %}
  253.     </div>
  254.     <script>
  255.         const license = "494A2C92-4FAE-4040-8348-9E5CDBF9D92E";
  256.         lightGallery(document.getElementById('gallery_taaka'), {
  257.             licenseKey: license,
  258.             selector: 'a',
  259.             download: false,
  260.         });
  261.         const loadMoreImages = document.getElementById('load-more-images');
  262.         const imageLayout = document.querySelectorAll('.image-layout');
  263.         const imageLayouts = Array.from(imageLayout);
  264.         let currentIndex = 1;
  265.         const updateButtonVisibility = () => {
  266.             if (currentIndex >= imageLayouts.length) {
  267.                 loadMoreImages.style.display = 'none';
  268.             }
  269.         }
  270.         updateButtonVisibility();
  271.         loadMoreImages.addEventListener('click', () => {
  272.             if (currentIndex < imageLayouts.length) {
  273.                 imageLayouts[currentIndex].classList.remove('hidden');
  274.                 currentIndex++;
  275.                 updateButtonVisibility();
  276.             }
  277.         });
  278.     </script>
  279. {% endblock %}