dialog.pdg-view { position:fixed; inset:0; box-sizing:border-box; width:100%; max-width:none; height:100%; height:100dvh; max-height:none; margin:0; padding:12px; border:0; color:white; background:#142523f5; }
dialog.pdg-view[open] { display:grid; grid-template:48px minmax(0,1fr) 56px / 1fr; gap:8px; }
.pdg-view::backdrop { background:#142523; }
html.pdg-open { overflow:hidden; }
.pdg-view button { display:grid; place-items:center; width:46px; height:46px; padding:0; border:1px solid #ffffff70; border-radius:50%; background:#294843; color:white; cursor:pointer; font:32px/1 Arial,sans-serif; }
.pdg-view button:focus-visible {outline:3px solid #ffba00;outline-offset:2px}
.pdg-view button:hover {color:#ffba00}
.pdg-close {justify-self:end}
.pdg-stage {min-height:0;display:grid;place-items:center;touch-action:pan-y pinch-zoom}
.pdg-stage img {width:100%;height:100%;min-height:0;object-fit:contain}
.pdg-controls {display:flex;align-items:center;justify-content:center;gap:18px}
.pdg-status {min-width:6ch;text-align:center;font:600 16px/1.4 system-ui;color:white}

/* Keep portrait thumbnails in the same frame as the rest of the gallery. */
.pavdan-galerie a[href] > img.pd-gallery-portrait {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
