my_gallery/css/gallery.css
2026-02-22 01:17:13 +01:00

46 lines
857 B
CSS

.gallery {
display: block;
padding: 6px; /* più stretto */
}
.gallery-section-title {
font-size: 18px;
font-weight: 600;
margin: 18px 6px 6px; /* più compatto */
color: #444;
}
.gallery-section {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* leggermente più piccole */
gap: 6px; /* SPACING RIDOTTO */
padding: 0 6px;
}
.thumb {
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 8px; /* più compatto */
overflow: hidden;
background: white;
box-shadow: 0 1px 3px rgba(0,0,0,0.12); /* più leggero */
position: relative;
cursor: pointer;
}
.thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.play-icon {
position: absolute;
bottom: 6px;
right: 6px;
background: rgba(0,0,0,0.55);
color: white;
padding: 3px 5px;
border-radius: 4px;
font-size: 12px;
}