.vg-grid{min-width:0}.vg-grid>.vg-item{margin:0;min-width:0;max-width:100%;overflow-wrap:anywhere}.vg-frame{display:block;position:relative;width:100%;min-width:0;padding:0;border:0;background:transparent;overflow:hidden;text-decoration:none;color:inherit;font:inherit;text-align:inherit}.vb2-document .vg-image{display:block;width:100%;max-width:100%;aspect-ratio:auto var(--vg-image-ratio);transition:transform .2s ease}.vg-shade{position:absolute;inset:0;background:#000;pointer-events:none}.vg-over{position:absolute;inset:0;display:grid;grid-template:repeat(3,minmax(0,1fr))/repeat(3,minmax(0,1fr));padding:10px;pointer-events:none}.vg-cell{display:flex;flex-direction:column;gap:var(--vg-text-gap,8px);min-width:0;grid-column:1}.vg-cell[data-position$=center]{grid-column:2}.vg-cell[data-position$=right]{grid-column:3}.vg-cell[data-position^=top]{grid-row:1;justify-content:flex-start}.vg-cell[data-position^=middle]{grid-row:2;justify-content:center}.vg-cell[data-position^=bottom]{grid-row:3;justify-content:flex-end}.vg-title,.vg-caption{display:block;margin:0;min-width:0}.vg-title{font-weight:700}.vg-below{display:flex;flex-direction:column;gap:var(--vg-text-gap,8px)}.vg-below:has(> :not([hidden])){padding-top:.5rem}.vg-over .vg-title,.vg-over .vg-caption{color:#fff;text-shadow:0 1px 3px #0008}.ve-gallery-summary{display:flex;gap:.5rem;align-items:center;cursor:grab}.ve-gallery-summary img{width:40px;height:40px;object-fit:contain}.ve-gallery-summary span{min-width:0;overflow-wrap:anywhere}.media-card[aria-pressed=true]{outline:3px solid var(--accent,#dcec43)}[data-picker-multiple]{position:sticky;bottom:0;padding:.7rem;background:var(--admin-panel,#fff);border-top:1px solid currentColor;display:flex;gap:1rem;align-items:center}@media(prefers-reduced-motion:reduce){.vg-image{transition:none!important}}

/* Gallery-only controls; no changes to content Accordion or other panel groups. */
.ve-gallery-summary{cursor:pointer}.ve-gallery-summary>span:not(.ve-gallery-grip){flex:1}.ve-gallery-grip{flex:none;cursor:grab;font-size:20px}.ve-gallery-summary .ve-gallery-remove{flex:none;padding:2px 8px;min-width:32px;min-height:32px;line-height:1}.ve-gallery-remove:focus-visible{outline:3px solid var(--accent,#dfed43);outline-offset:2px}
[data-selection-mark]{display:block;font-weight:700;padding:.25rem;border:1px solid currentColor;border-radius:3px}[data-picker-current]{max-height:28vh;overflow:auto}.media-current-position{display:flex;align-items:center;gap:8px;padding:4px}.media-current-position>span{flex:1}.media-current-position button{flex:none;font-size:.85rem}
/* The photo owns the stage; navigation overlays never consume image columns/rows. */
.vg-lightbox{--vg-edge:clamp(4px,1vmin,12px);box-sizing:border-box;width:calc(100vw - 2 * var(--vg-edge));max-width:none;height:calc(100vh - 2 * var(--vg-edge));height:calc(100dvh - 2 * var(--vg-edge));max-height:none;margin:auto;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border:0;background:#102e30;color:#fff;overflow:hidden}
.vg-lightbox::backdrop{background:#000c}.vg-lightbox[open]{display:flex;flex-direction:column;gap:6px}.vg-lightbox [hidden]{display:none!important}
.vg-lb-bar{position:absolute;z-index:3;inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) auto max(8px,env(safe-area-inset-left));display:flex;align-items:flex-start;justify-content:space-between;gap:8px;pointer-events:none}.vg-lb-bar [aria-live]{padding:6px 10px;border-radius:5px;background:#000b;color:#fff;text-shadow:0 1px 2px #000}.vg-lb-bar [data-gallery-close]{margin-inline-start:auto;pointer-events:auto}
.vg-control{box-sizing:border-box;margin:0;font:inherit;font-size:24px;color:inherit;background:#000a;border:1px solid currentColor;border-radius:5px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 4px #0006}.vg-control:disabled{opacity:.4;cursor:default}
.vg-lb-stage{position:relative;flex:1;min-height:0;min-width:0;touch-action:pan-y}.vg-lb-picture{position:absolute;inset:0;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center}.vg-lb-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}.vg-lb-picture>[role=status]{margin:52px;overflow-wrap:anywhere;text-align:center;max-height:calc(100% - 104px);overflow:auto}
.vg-lb-stage>.vg-control{position:absolute;z-index:2;top:50%;transform:translateY(-50%)}.vg-lb-stage>.vg-control:first-child{left:4px}.vg-lb-stage>.vg-control:last-child{right:4px}
.vg-lb-copy{max-height:min(18dvh,8rem);overflow:auto;flex:none;min-height:0;scrollbar-width:thin;overscroll-behavior:contain;padding:0 4px;line-height:1.35}.vg-lb-title,.vg-lb-caption{margin:2px 0;overflow-wrap:anywhere}.vg-lb-title{font-size:1.1rem;font-weight:700}
.vg-lb-thumbs{display:flex;flex:none;gap:6px;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:3px;scrollbar-width:thin;overscroll-behavior-x:contain;justify-content:safe center}.vg-thumb{box-sizing:border-box;margin-block:0;padding:2px;width:clamp(44px,7dvh,64px);height:clamp(44px,7dvh,64px);min-width:44px;min-height:44px;flex:none;background:transparent;border:2px solid transparent;border-radius:4px;color:inherit}.vg-thumb img{display:block;width:100%;height:100%;object-fit:contain}.vg-thumb[aria-current=true]{border-color:var(--accent,#dfed43)}.vg-lb-thumbs>.vg-thumb:first-child{margin-inline-start:auto}.vg-lb-thumbs>.vg-thumb:last-child{margin-inline-end:auto}
.vg-lightbox :focus-visible{outline:3px solid var(--accent,#dfed43);outline-offset:-3px}
@media(max-height:500px){.vg-lightbox[open]{gap:3px}.vg-lightbox{--vg-edge:4px;padding-top:max(3px,env(safe-area-inset-top));padding-bottom:max(3px,env(safe-area-inset-bottom))}.vg-lb-copy{max-height:16dvh;line-height:1.2}.vg-lb-title{font-size:1rem}.vg-lb-thumbs{gap:4px;padding:2px}.vg-thumb{width:44px;height:44px}.vg-lb-bar{inset-block-start:max(5px,env(safe-area-inset-top))}}
@media(max-width:360px){.vg-lightbox{--vg-edge:0px}}
