Files
CustomLibs/JS/JustifedGallery/assets/css/lib/gallery/gallery.css

82 lines
1.3 KiB
CSS

/* Conteneur de la galerie */
.justified-gallery {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
/* Images */
.justified-gallery img {
display: block;
object-fit: cover;
vertical-align: top;
transition: all 0.2s;
filter: blur(2px) brightness(0.8);
}
.justified-gallery img:hover {
transform: scale(1.03);
filter: blur(0px) brightness(1);
}
/* Modal */
.jg-modal {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: none;
justify-content: center;
align-items: center;
background: rgba(0,0,0,0.8);
z-index: 1000;
}
.jg-modal img {
max-width: 90%;
max-height: 90%;
transition: transform 0.2s ease;
cursor: grab;
}
.jg-close {
position: absolute;
top: 20px;
right: 35px;
color: #fff;
font-size: 40px;
font-weight: bold;
cursor: pointer;
z-index: 1001;
}
.jg-controls span {
position: absolute;
top: 50%;
color: #fff;
font-size: 50px;
font-weight: bold;
cursor: pointer;
user-select: none;
padding: 10px;
background: rgba(0,0,0,0.3);
border-radius: 50%;
transform: translateY(-50%);
}
.jg-prev { left: 20px; }
.jg-next { right: 20px; }
.jg-prev, .jg-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255,255,255,0.7);
border: none;
font-size: 2rem;
padding: 0.5rem 1rem;
cursor: pointer;
}