-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathart.css
50 lines (43 loc) · 851 Bytes
/
art.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
.gallery-section {
margin: 20px;
}
.gallery-section h2 {
text-align: center;
color: #333;
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-gap: 20px;
justify-content: space-around;
padding: 20px;
}
.image {
position: relative;
overflow: hidden;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.image img {
width: 100%;
height: auto;
display: block;
}
.overlay {
position: absolute;
top: 100%;
left: 0;
right: 0;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
background: linear-gradient( rgba(0, 0, 0, 0),rgba(0, 0, 0, 0.8));
opacity: 0;
transition: opacity 0.3s, top 0.3s;
}
.image:hover .overlay {
top: 0;
opacity: 1;
}