-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgallery.css
More file actions
95 lines (84 loc) · 1.37 KB
/
gallery.css
File metadata and controls
95 lines (84 loc) · 1.37 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#gallery {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
height: 100%;
margin: 1.5rem auto;
max-width: 1200px;
}
#gallery div {
flex-basis: 33.3333%;
}
#gallery img {
display: inline-flex;
margin: 1rem;
object-fit: cover;
overflow: hidden;
width: 80vw;
height: 80vw;
cursor: pointer;
}
#full-pic {
position: fixed;
display: none;
justify-content: space-evenly;
align-items: center;
flex-direction: row;
background-color: rgba(0, 0, 0, 0.8);
inset: 0;
z-index: 999;
}
#x {
color: white;
position: absolute;
height: auto;
margin-top: 2.5%;
margin-right: 2.5%;
width: 40px;
top: 0;
right: 0;
cursor: pointer;
}
#full-image-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 80vw;
max-width: 1200px;
}
#full-image {
width: 90vw;
object-fit: contain;
margin-bottom: 0;
}
#caption {
font-weight: 400;
font-size: 2rem;
color: white;
margin-top: 1%;
text-align: center;
}
.image-arrow {
width: 4rem;
height: 4rem;
z-index: 99;
}
.dim {
filter: brightness(0.5);
}
@media only screen and (min-width: 768px) {
#full-image {
width: 70vw;
max-height: 40vw;
max-width: 1200px;
}
#gallery img {
width: 40vw;
max-width: 360px;
height: 40vw;
max-height: 360px;
}
}