-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.css
More file actions
92 lines (83 loc) · 1.69 KB
/
plugin.css
File metadata and controls
92 lines (83 loc) · 1.69 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
/* Box-Sizing Reset */
* {
box-sizing: border-box;
}
/* Vorschaubilder – mobil nehmen sie die volle Breite */
.lightbox-item img {
width: 100%;
height: auto;
display: block;
border: 1px solid #ccc;
border-radius: 5px;
padding: 8px;
cursor: pointer;
max-width: 100%;
}
/* Container für Bild + evtl. Figure */
.lightbox-item > figure {
display: block;
margin: 0 auto;
}
/* Lightbox Overlay */
.lightbox-modal {
display: flex;
flex-flow: column nowrap;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(0,0,0,0.9);
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
color: white;
}
/* Modal sichtbar machen */
.lightbox-modal.show {
opacity: 1;
pointer-events: all;
z-index: 999
}
/* Bild in der Lightbox */
.lightbox-modal img {
width: auto;
max-width: 100vw;
max-height: 90vh;
object-fit: contain;
border-radius: 6px;
}
/* Close-Button */
.lightbox-modal .close {
position: absolute;
top: 1rem;
right: 1rem;
background: transparent;
border: 0;
font-size: 2rem;
color: white;
cursor: pointer;
}
/* Figcaption (falls nötig) */
.lightbox-item figcaption,
.lightbox-modal figcaption {
text-align: center;
font-size: 12px;
margin-top: 0.5rem;
}
/* -------- Desktop Anpassungen -------- */
@media (min-width: 768px) {
/* Vorschaubilder auf Desktop kleiner */
.lightbox-item img {
max-width: 250px;
}
.lightbox-modal img {
max-width: 90vw;
max-height: 90vh;
}
}