Gary Vaynerchuck
<div class="gallery-container">
<div class="gallery-item">
<img src="https://i.ibb.co/sp76pHk/Convert-Out-Resized-Photo-Mar-04-2-52-17-PM-png.jpg" alt="Gallery image" loading="lazy" />
</div>
</div>
<style>
.gallery-container {
grid grid-cols-3 gap-4
gap: 1rem;
}
.gallery-item {
position: relative;
overflow: hidden;
border-radius: 0.5rem;
aspect-ratio: 1;
}
.gallery-item img {
width: 100%;
height: 100%;
object-fit: contain;
image-rendering: -webkit-optimize-contrast;
backface-visibility: hidden;
transform: translateZ(0);
will-change: transform;
transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
transform: scale(1.12);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
</style>