-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.css
More file actions
63 lines (52 loc) · 1.1 KB
/
Copy pathlayout.css
File metadata and controls
63 lines (52 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* Responsive layout shared by the artwork gallery pages. */
.main-content-section {
box-sizing: border-box;
max-width: 1100px;
}
.gallery {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery a {
display: block;
min-width: 0;
}
.gallery img {
display: block;
width: 100%;
max-width: 300px;
height: auto;
aspect-ratio: 1 / 1;
object-fit: cover;
margin: 0 auto;
}
/* Smaller desktops and tablets: use two comfortably sized columns. */
@media (max-width: 1100px) {
.main-content-section {
width: 90%;
}
.gallery {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}
}
/* Phones and narrow windows: stack thumbnails in one column. */
@media (max-width: 600px) {
h1 {
font-size: 36px;
}
.content-container .main-content-section {
width: 100%;
padding: 18px;
}
.gallery {
grid-template-columns: minmax(0, 1fr);
gap: 16px;
}
.gallery img {
max-width: 100%;
}
.icon-align > img {
max-width: 100%;
height: auto;
}
}