-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlightbox.css
More file actions
89 lines (89 loc) · 2.2 KB
/
Copy pathlightbox.css
File metadata and controls
89 lines (89 loc) · 2.2 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
/* Lightbox base styles */
:root{
--lb-bg: rgba(0,0,0,0.85);
--lb-button-bg: rgba(255,255,255,0.06);
--lb-button-color: #fff;
}
.lb-overlay{
position:fixed;
inset:0;
background:var(--lb-bg);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
opacity:0;
pointer-events:none;
transition:opacity .18s ease;
}
.lb-overlay.open{
opacity:1;
pointer-events:auto;
}
.lb-wrap{
max-width:95vw;
max-height:95vh;
position:relative;
display:flex;
align-items:center;
justify-content:center;
}
.lb-img{
max-width:100%;
max-height:100%;
transform-origin:center center;
transition:transform .12s ease;
box-shadow:0 8px 30px rgba(0,0,0,0.6);
border-radius:6px;
}
.lb-controls{
position:absolute;
top:12px;
right:12px;
display:flex;
gap:8px;
}
.lb-btn{
/* High-contrast buttons: white background, dark text for readability over dark overlay */
background: #ffffff;
color: #0b1220;
border: 1px solid rgba(11,18,32,0.08);
padding:10px 12px;
border-radius:8px;
cursor:pointer;
font-size:16px;
line-height:1;
font-weight:600;
box-shadow: 0 6px 16px rgba(2,6,23,0.18);
transition:transform .08s ease, box-shadow .12s ease, opacity .08s ease;
}
.lb-btn:hover{
transform: translateY(-1px);
box-shadow: 0 10px 22px rgba(2,6,23,0.22);
}
.lb-btn:active{ transform: translateY(0); }
.lb-btn:focus{ outline: none; box-shadow: 0 0 0 4px rgba(3,102,214,0.18); }
.lb-btn[disabled]{ opacity:0.5; cursor:default }
.lb-caption{
position:absolute;
/* più in basso: avvicina la caption al bordo inferiore */
bottom:6px;
left:12px;
right:12px;
color:#111;
font-size:16px;
text-align:left;
/* sfondo meno nero: effetto "frosted glass" chiaro per miglior leggibilità */
background: rgba(255,255,255,0.92);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
padding:10px 12px;
border-radius:8px;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
border: 1px solid rgba(0,0,0,0.06);
}
.lb-close-area{position:absolute;inset:0;}
@media (max-width:640px){
.lb-controls{top:8px;right:8px}
.lb-btn{padding:6px}
}