-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
/
gallery.css
48 lines (40 loc) · 885 Bytes
/
gallery.css
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
.kg-gallery-card,
.kg-gallery-card * {
box-sizing: border-box;
}
.kg-gallery-card,
.kg-image-card {
--gap: 1.2rem;
}
.kg-image-card:not(.kg-card-hascaption) + .kg-image-card,
.kg-image-card:not(.kg-card-hascaption) + .kg-gallery-card,
.kg-gallery-card:not(.kg-card-hascaption) + .kg-image-card,
.kg-gallery-card:not(.kg-card-hascaption) + .kg-gallery-card {
margin-top: var(--gap);
}
.kg-gallery-container {
position: relative;
}
.kg-gallery-row {
display: flex;
flex-direction: row;
justify-content: center;
}
.kg-gallery-image img {
display: block;
margin: 0;
width: 100%;
height: 100%;
}
.kg-gallery-row:not(:first-of-type) {
margin: var(--gap) 0 0;
}
.kg-gallery-image:not(:first-of-type) {
margin: 0 0 0 var(--gap);
}
@media (max-width: 600px) {
.kg-gallery-card,
.kg-image-card {
--gap: 0.6rem;
}
}