{% extends 'base.html.twig' %}
{% block title %}Gallery{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
.roww {
column-width: 15em;
-moz-column-width: 15em;
-webkit-column-width: 15em;
column-gap: 1rem;
-moz-column-gap: 1rem;
-webkit-column-gap: 1rem;
}
.item {
display: inline-block;
width: 100%;
text-align: center;
margin: 0.5rem auto;
position: relative;
background: #A60A16;
padding: 2px;
border-radius: 6px;
transition: 0.3s ease;
font-size: 0;
}
.item img {
max-width: 100%;
}
.content {
position: absolute;
height: 0;
width: 0;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.65);
z-index: 1;
display: flex;
justify-content: center;
flex-direction: column;
height: 100%;
width: 100%;
transition: 0.3s ease-in-out;
opacity: 0;
}
.content p {
opacity: 0;
transition-delay: 1s;
transition: 0.3s ease;
font-size: 20px;
}
.item:hover {
box-shadow: 0 10px 15px 0 rgba(0, 0, 0, 0.25);
}
.item:hover .content {
height: calc(100% - 30px);
width: calc(100% - 30px);
opacity: 1;
}
.item:hover .content p {
opacity: 1;
color: #fff;
}
</style>
{% endblock %}
{% block body %}
<div class="page-banner-area">
<div class="container">
<div class="page-banner-content">
<div class="row align-items-center">
<div class="col-lg-7 col-md-6">
<h2>Photo Gallery</h2>
</div>
{#<div class="col-lg-5 col-md-6">
<ul>
<li>
<a href="{{ path('app_main') }}">Home</a>
</li>
<li>Gallery</li>
</ul>
</div>#}
</div>
</div>
</div>
{{ include('include/header-bread.html.twig') }}
</div>
<div class="gallery-area pt-100 pb-75">
<div class="container">
<h3>Annual Youth Convention 2023</h3>
<hr>
<div class="row row-cols-2 row-cols-md-4 g-4" data-masonry='{"percentPosition": true }'>
{% for i in range(10, 1) %}
<div class="col">
<div class="single-gallery-item">
<a data-fancybox="gallery"
href="{{ asset('gallery/ayc'~i~'.jpeg') }}"
data-caption="Title">
<img class="img-fluid rounded rounded epcyf-gallery" alt="" loading="lazy"
src="{{ asset('gallery/ayc'~i~'.jpeg') }}">
</a>
</div>
</div>
{% endfor %}
</div>
<hr>
<div class="row row-cols-2 row-cols-md-4 g-4" data-masonry='{"percentPosition": true }'>
{% for i in range(20, 1) %}
<div class="col">
<div class="single-gallery-item">
<a data-fancybox="gallery"
href="{{ asset('gallery/g'~i~'.jpg') }}"
data-caption="Title">
<img class="img-fluid rounded rounded epcyf-gallery" alt="" loading="lazy"
src="{{ asset('gallery/g'~i~'.jpg') }}">
</a>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<script src="{{ asset('assets/js/masonry.pkgd.min.js') }}"
crossorigin="anonymous" async></script>
{% endblock %}