-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
103 lines (86 loc) · 1.75 KB
/
Copy pathstyles.css
File metadata and controls
103 lines (86 loc) · 1.75 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
96
97
98
99
100
101
102
103
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
background-color: #f4f4f4;
}
.wrapper{
height: auto;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.gallery {
height: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 25px;
}
.wrapper h1{
text-align: center;
margin: 20px 0;
font-size: 2.5rem;
color: rgb(51, 51, 51);
}
.card{
width: 100%;
position: relative;
margin-bottom: 20px;
border-radius: 10px;
overflow: hidden;
}
.card img{
width: 100%;
height: 100%;
filter: grayscale(100%);
box-shadow: 0 0 20px #333;
object-fit: cover;
}
.card:hover{
transform: scale(1.03);
filter: drop-shadow(0 0 10px #333);
transition: 0.3s;
}
.card:hover img{
filter: grayscale(0%);
}
.card figcaption{
position: absolute;
bottom: 0;
left: 0;
padding: 25px;
width: 100%;
height: 20%;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
color: #fff;
font-weight: 500;
font-size: 16px;
opacity: 0;
}
.card:hover figcaption{
transform: scale(1.03);
opacity: 1;
transition: 0.3s;
}
@media (min-width:768px) {
#image9, #image5, #image12{
grid-column: span 2;
}
}
@media (max-width:768px) and (min-width:500px){
.gallery{
grid-template-columns: repeat(2,1fr);
justify-content: baseline;
align-content: baseline;
}
#image5, #image12{
grid-column: span 2;
}
}
@media (max-width:500px){
.gallery{
grid-template-columns: 1fr;
}
}