.jsmt-enlarge { cursor: zoom-in; }
.jsmt-enlarge:focus-visible { outline: 3px solid #b89456; outline-offset: 4px; }
html.jsmt-lightbox-open { overflow: hidden; }
dialog.jsmt-lightbox {
    box-sizing: border-box; position: fixed; inset: 0; margin: auto;
    width: 100%; max-width: none; height: 100%; max-height: none;
    padding: 70px 72px 24px; border: 0; background: rgba(12, 12, 12, .96); color: white;
}
dialog.jsmt-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.jsmt-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.jsmt-lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.jsmt-lightbox figure img { display: block; margin: auto; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; }
.jsmt-lightbox figcaption { margin-top: 12px; font: 14px/1.5 sans-serif; overflow-wrap: anywhere; }
.jsmt-lightbox button { position: absolute; min-width: 44px; min-height: 44px; padding: 10px 14px; border: 1px solid #777; border-radius: 6px; background: #252525; color: white; cursor: pointer; font: 18px/1.2 sans-serif; }
.jsmt-lightbox button:hover { background: #454545; }
.jsmt-lightbox button:focus-visible { outline: 3px solid #e7bd77; outline-offset: 3px; }
.jsmt-lightbox-close { top: 16px; right: 16px; }
.jsmt-lightbox-prev { left: 12px; top: 50%; }
.jsmt-lightbox-next { right: 12px; top: 50%; }
.jsmt-lightbox button[hidden] { display: none; }
@media (max-width: 600px) {
    dialog.jsmt-lightbox { padding: 76px 12px 82px; }
    .jsmt-lightbox figure img { max-height: calc(100dvh - 210px); }
    .jsmt-lightbox-prev, .jsmt-lightbox-next { top: auto; bottom: 18px; }
    .jsmt-lightbox-prev { left: calc(50% - 60px); }
    .jsmt-lightbox-next { right: calc(50% - 60px); }
}
