.gallery-grid [data-gallery-photo]{display:block;cursor:zoom-in}
html.gallery-lightbox-open,html.gallery-lightbox-open body{overflow:hidden}
dialog.gallery-lightbox{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:16px 24px;border:0;border-radius:0;background:#091610f7;color:var(--cream);overflow:hidden}
dialog.gallery-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
dialog.gallery-lightbox::backdrop{background:#07140de8}
.gallery-lightbox [hidden]{display:none!important}
.gallery-lightbox-toolbar{display:flex;align-items:center;gap:16px;min-width:0}
.gallery-lightbox-toolbar>span:first-child{flex:1;min-width:0;font-family:var(--serif);font-size:24px}
.gallery-lightbox-toolbar [data-gallery-counter]{color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.gallery-lightbox-toolbar [data-gallery-close]{border:1px solid var(--line);border-radius:50%;background:#142b23e8;color:var(--cream);font-size:30px;line-height:1;min-width:48px;min-height:48px;padding:4px}
.gallery-lightbox-stage{position:relative;display:flex;justify-content:center;align-items:center;min-width:0;min-height:0;touch-action:pan-y pinch-zoom}
.gallery-lightbox-stage>[data-gallery-image]{display:block;max-width:calc(100% - 128px);max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none}
.gallery-lightbox-stage>[data-gallery-loading],.gallery-lightbox-error{padding:20px 64px;text-align:center;color:var(--muted);overflow-wrap:anywhere}
.gallery-lightbox-error p{margin:0 0 16px}
.gallery-lightbox-stage>[data-gallery-prev],.gallery-lightbox-stage>[data-gallery-next]{position:absolute;top:50%;transform:translateY(-50%);border:1px solid #ffffff40;border-radius:50%;background:#142b23e8;color:var(--cream);width:48px;height:48px;padding:0;font-size:34px;line-height:1}
.gallery-lightbox-prev{left:0}.gallery-lightbox-next{right:0}
.gallery-lightbox button:hover{background:#294539}
.gallery-lightbox button:disabled{cursor:default;opacity:.35}
dialog.gallery-lightbox>.gallery-lightbox-caption{font-size:14px;line-height:1.5;color:var(--cream);text-align:center;margin:0 auto;max-width:900px;max-height:6em;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;padding:4px 8px}
.gallery-lightbox[data-single=true] [data-gallery-image]{max-width:100%}
@media(max-width:600px){dialog.gallery-lightbox{padding:12px;gap:8px}.gallery-lightbox-toolbar>span:first-child{font-size:21px}.gallery-lightbox-stage>[data-gallery-image]{max-width:100%}.gallery-lightbox-stage>[data-gallery-prev],.gallery-lightbox-stage>[data-gallery-next]{width:44px;height:44px}.gallery-lightbox-prev{left:2px}.gallery-lightbox-next{right:2px}.gallery-lightbox-stage>[data-gallery-loading],.gallery-lightbox-error{padding:16px 48px}}
@supports(padding:max(0px)){dialog.gallery-lightbox{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}}
