.vp-section{margin:18px 0;padding-top:16px;border-top:1px solid var(--border,#d5deea)}
.vp-section h3{margin:0 0 8px}.vp-actions{display:flex;gap:8px;flex-wrap:wrap}.vp-actions button{flex:1;min-height:44px}
.vp-status{font-size:14px;color:var(--muted,#526477);overflow-wrap:anywhere}
.vp-grid,.vp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.vp-grid article{min-width:0}.vp-thumbnail,.vp-grid .vp-thumbnail,.vp-edit-card .vp-thumbnail{display:block;width:100%;height:auto;aspect-ratio:4/3;padding:0!important;margin:0!important;border:1px solid var(--border,#cbd5e1);border-radius:10px;overflow:hidden;background:var(--surface,#fff);min-height:0}
.vp-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}.vp-grid .vp-remove{width:100%;margin-top:6px;min-height:36px;padding:6px;font-size:13px}.vp-grid small{display:block;margin-top:6px;color:var(--muted,#526477)}
.vp-edit-card{position:relative;min-width:0;border:1px solid var(--border,#cbd5e1);border-radius:12px;padding:6px;margin:0;background:var(--surface,#fff)}
.vp-edit-actions{position:relative;margin-top:4px;text-align:right}.vp-edit-actions summary{display:inline-flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:44px;height:36px;border-radius:8px;font-size:24px;line-height:1;color:var(--text,#182638);background:var(--accent-surface,#eef5ff)}.vp-edit-actions summary::-webkit-details-marker{display:none}.vp-edit-actions summary:focus-visible{outline:2px solid var(--link,#1764d8);outline-offset:2px}
.vp-edit-actions[open]{z-index:2}.vp-edit-actions[open] summary{margin-bottom:6px}.vp-edit-actions button{display:block;width:100%;min-height:44px;margin:4px 0!important;font-size:13px;padding:6px 8px!important}.vp-edit-actions .vp-remove{color:var(--error,#b42318)}
.vp-edit-card>p[role=status]{font-size:12px;margin:4px 0 0;overflow-wrap:anywhere}.vp-edit-card>p[role=status]:empty{display:none}.vp-cards>p:first-child{grid-column:1/-1;margin:0}
/* Fixed controls leave the entire remaining viewport available for the photograph. */
dialog.vp-viewer{position:fixed;inset:0;margin:auto;width:min(1200px,100vw);height:100dvh;max-width:100vw;max-height:100dvh;padding:0;border:0;border-radius:0;box-sizing:border-box;background:#10141b;color:#fff;overflow:hidden}
dialog.vp-viewer[open]{display:flex;flex-direction:column}.vp-viewer::backdrop{background:#080b10ed}
.vp-viewer .vp-viewer-bar,.vp-viewer footer{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:8px 12px;background:#171d27;color:#fff}.vp-viewer .vp-viewer-bar{padding-top:max(8px,env(safe-area-inset-top))}.vp-viewer footer{justify-content:space-between;padding-bottom:max(8px,env(safe-area-inset-bottom))}
.vp-viewer .vp-viewer-count{flex:1;font-size:14px;font-variant-numeric:tabular-nums}.vp-viewer .vp-viewer-hint{font-size:12px;color:#c3cedf;text-align:center}
.vp-viewer button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0!important;margin:0!important;border:1px solid #465164;border-radius:10px;background:#252f3e;color:#fff;font-size:28px;line-height:1;box-shadow:none}.vp-viewer button:disabled{opacity:.3}.vp-viewer button:focus-visible{outline:2px solid #81b8ff;outline-offset:2px}
.vp-viewer .vp-viewer-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y pinch-zoom;background:#10141b}
.vp-viewer .vp-viewer-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;margin:0;flex-shrink:0;user-select:none}
.vp-viewer .vp-viewer-stage.is-zoomed{display:block;overflow:auto;touch-action:pan-x pan-y pinch-zoom}.vp-viewer .vp-viewer-stage.is-zoomed img{max-width:none;max-height:none;margin:auto}
@media(max-width:560px){.vp-grid,.vp-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.vp-actions button{padding:8px}.vp-edit-actions summary{height:44px}.vp-viewer .vp-viewer-bar,.vp-viewer footer{padding-left:8px;padding-right:8px}}
