-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphoto.css
62 lines (54 loc) · 1.04 KB
/
photo.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
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 0;
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: 20px;
padding: 20px;
}
.gallery-item {
position: relative;
overflow: hidden;
border-radius: 5px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.gallery-item img {
width: 100%;
height: auto;
display: block;
}
.lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.lightbox.show {
opacity: 1;
pointer-events: auto;
}
.lightbox-image {
max-width: 90%;
max-height: 90%;
}
.close-button {
position: absolute;
top: 20px;
right: 20px;
color: #fff;
font-size: 24px;
cursor: pointer;
}