.source-gallery-dialog{position:fixed;inset:0;margin:auto;border:0;padding:48px 16px 16px;background:#142e27;color:#fff;width:min(1100px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}.source-gallery-dialog::backdrop{background:rgb(7 28 22 / .8)}.source-gallery-dialog>img{display:block;max-width:100%;max-height:calc(100dvh - 180px);width:auto;height:auto;object-fit:contain;margin:0 auto}.source-gallery-close{position:absolute;right:12px;top:6px;font-size:28px;background:transparent;color:#fff;border:0;cursor:pointer;min-width:44px;min-height:36px}.source-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.source-gallery-controls button{font:inherit;padding:10px 14px;background:#f6f7f1;color:#183b34;border:0;cursor:pointer;min-height:44px}.source-gallery-dialog button:focus-visible{outline:3px solid #d8c58a;outline-offset:3px}
.source-gallery-dialog [hidden]{display:none!important}.source-gallery-dialog>video{display:block;width:100%;max-width:100%;max-height:calc(100dvh - 180px);margin:0 auto}.source-gallery-launchers{display:flex;gap:16px;flex-wrap:wrap}@media(max-width:520px){.source-gallery-controls{gap:8px;font-size:.85rem}.source-gallery-controls button{padding:10px 8px}}

.source-gallery-dialog [data-gallery-caption]{font-size:14px;line-height:1.5;margin:12px auto;max-width:900px;overflow-wrap:anywhere}.source-gallery-dialog [data-gallery-caption]:empty{display:none}
