#224 Fix missing caption

This commit is contained in:
Alan Grainger
2026-05-25 16:06:16 +08:00
parent 5c169af78d
commit 7c4c1c4776
3 changed files with 51 additions and 4 deletions
+23
View File
@@ -125,3 +125,26 @@ html.pswp-no-arrows .pswp__button--arrow {
.pswp__bg {
transition: opacity var(--pswp-transition-duration);
}
/* Image caption (from EXIF description) - centered in the 56px bottom margin
carved out by the lightbox `padding.bottom` setting. */
.pswp__caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 56px;
padding: 0 24px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 14px;
line-height: 1.4;
text-align: center;
pointer-events: none;
}
.pswp__caption[hidden] {
display: none;
}