blob: 05fbf4cff00f9c01676ad88dbc025cb47de88334 (
plain)
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
|
@media (min-width: 40em) {
main {
width: 80%;
justify-self: center;
}
main #photos {
display: grid;
grid-template-columns: repeat(4, auto);
justify-content: space-around;
width: 100%;
}
#photos > * {
height: 100%;
}
#photos img.portrait {
height: 60vh;
filter: grayscale(0.5);
transition: filter 1s, transform 1s;
}
#photos img.portrait:hover {
filter: none;
transform: scale(1.05);
}
}
@media (max-width: 40em) {
#photos {
display: grid;
grid-template-columns: repeat(4, 20%);
justify-content: space-evenly;
width: 100%;
}
#photos > * {
width: 100%;
height: 50vh;
}
#photos img.portrait {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
}
|