-
Notifications
You must be signed in to change notification settings - Fork 3
/
gallery.css
122 lines (116 loc) · 3.11 KB
/
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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
.cont-of-gallery{
padding: 7.5% 0;
margin: auto;
width: 85%;
height: fit-content;
}
.gallery{
display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-rows: 35vw;
grid-template-areas:'two two'
'one fiv'
'one fou'
'tre fou'
'six six';
gap: 1vw;
}
.gallery-item{
position: relative;
border-radius: 1vw;
overflow: hidden;
box-shadow: 0 5px 15px black;
cursor: pointer;
}
.gallery-item p{
display: block;
width: 100%;
padding: 1.5vh;
position: absolute;
bottom: 0;
left: 0;
font-size: 2.7vh;
color: white;
background-color: rgba(0, 0, 0, 0.4);
}
.gallery-item:nth-child(1){
grid-area: one;
}
.gallery-item:nth-child(2){
grid-area: two;
}
.gallery-item:nth-child(3){
grid-area: tre;
}
.gallery-item:nth-child(4){
grid-area: fou;
}
.gallery-item:nth-child(5){
grid-area: fiv;
}
.gallery-item:nth-child(6){
grid-area: six;
}
.gallery-item-img{
height: 100%;
width: 100%;
object-fit: cover;
transition: 200ms;
}
.gallery-item:hover>.gallery-item-img{
transform: scale(1.08);
}
.picture-viewer{
display: none;
position: fixed;
top: 12vh;
left: 0;
width: 100%;
height: 88vh;
z-index: 50;
background: rgba(0, 0, 0, 0.5);
cursor: pointer;
}
.picture{
display: none;
position: fixed;
top: 57%;
left: 50%;
max-height: 70vh;
max-width: 75vw;
min-height: 5vh;
min-width: 5vw;
/* padding: 2vh; */
transform: translate(-50%, -50%);
z-index: 51;
/*background-color: black; */
border: 1px solid rgb(47, 47, 47);
border-radius: 1vh;
transition: .5s;
cursor: auto;
}
#arrow--left{
height: 5vh;
width: 5vh;
position: fixed;
top: 55%;
left: 5%;
border-left: 5px solid white;
border-bottom: 5px solid white;
transform: translateY(-50%) rotate(45deg);
cursor: pointer;
}
#arrow--right{
height: 5vh;
width: 5vh;
position: fixed;
top: 55%;
right: 5%;
border-right: 5px solid white;
border-bottom: 5px solid rgb(187, 153, 153);
transform: translateY(-50%) rotate(-45deg);
cursor: pointer;
}/**/
.active{
display: block;
}