-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlightbox.css
More file actions
54 lines (53 loc) · 960 Bytes
/
Copy pathlightbox.css
File metadata and controls
54 lines (53 loc) · 960 Bytes
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
.lightbox {
position: fixed;
inset: 0;
z-index: 9999;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.35s ease;
}
.lightbox.active {
opacity: 1;
pointer-events: auto;
}
.lightbox-img {
max-width: 92vw;
max-height: 88vh;
object-fit: contain;
border-radius: 8px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
position: fixed;
top: 24px;
right: 32px;
font-size: 34px;
background: none;
border: none;
color: #fff;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.25s;
z-index: 10000;
line-height: 1;
}
.lightbox-close:hover {
opacity: 1;
}
@media (max-width: 560px) {
.lightbox-img {
max-width: 96vw;
max-height: 80vh;
}
.lightbox-close {
top: 16px;
right: 20px;
font-size: 28px;
}
}