I have a gallery with a image grid that I cannot resize to auto cut the images with the same format in the browser and on phone.
5th element with bigger height than normal
CSS
.grid figure {
position: relative;
overflow: hidden;
background: #3085a3;
text-align: center;
cursor: pointer;
}
.grid figure img {
position: relative;
display: block;
max-width: 100%;
opacity: 0.8;
}
HTML
<li class="grid">
<a href="#image-6">
<figure class="effect-apollo">
<img src="{$e}" alt="image6">
<figcaption></figcaption>
</figure>
</a>
<div class="lb-overlay" id="image-6">
<img src="{$e}" alt="image6" />
<div class="gal-info">
<h3>Tilling</h3>
<p>Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
</div>
<a href="#" class="lb-close">Close</a>
</div>
</li>