28 lines
578 B
CSS
28 lines
578 B
CSS
|
.gallery {
|
||
|
max-width: var(--design-width);
|
||
|
width: 100%;
|
||
|
display: grid;
|
||
|
grid-template-columns: repeat(3, 1fr);
|
||
|
gap: 1rem;
|
||
|
margin: auto;
|
||
|
|
||
|
figure {
|
||
|
background-color: #282828;
|
||
|
border: 1px solid #444;
|
||
|
border-radius: 8px;
|
||
|
padding: 10px;
|
||
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media only screen and (max-width: 799px) {
|
||
|
.gallery {
|
||
|
grid-template-columns: repeat(2, 1fr);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media only screen and (max-width: 399px) {
|
||
|
.gallery {
|
||
|
grid-template-columns: repeat(1, 1fr);
|
||
|
}
|
||
|
}
|