.catalog-preview { position:fixed; inset:0; margin:auto; width:min(96vw, 1400px); height:96dvh; max-width:none; max-height:none; padding:0; border:0; background:#e8e9e9; color:#222; }
.catalog-preview::backdrop { background:#000a; }
.catalog-preview[open] { display:flex; flex-direction:column; }
.catalog-preview .catalog-header { display:flex; position:static; align-items:center; flex:none; gap:1rem; padding:.5rem 1rem; background:#fff; color:#222; border-bottom:1px solid #ddd; }
.catalog-header strong { margin-right:auto; font-size:15px; }
.catalog-header a { color:inherit; text-decoration:underline; font-size:13px; white-space:nowrap; }
.catalog-preview button { display:inline-flex; align-items:center; justify-content:center; color:inherit; font:inherit; font-size:22px; width:44px; height:44px; flex:none; padding:0; border:1px solid #ced3d5; background:#fff; cursor:pointer; border-radius:3px; }
.catalog-preview button:hover:not(:disabled) { background:#e5edf1; border-color:#7395a7; }
.catalog-preview button:disabled { opacity:.35; cursor:default; }
.catalog-preview :is(button,a,select):focus-visible { outline:3px solid #205677; outline-offset:2px; }
.catalog-preview button.catalog-close { font-size:28px; border:0; }
.catalog-toolbar { display:flex; flex:none; align-items:center; justify-content:space-between; gap:8px 16px; flex-wrap:wrap; padding:8px 16px; background:#fff; }
.catalog-zoom-controls,.catalog-page-controls { display:flex; gap:6px; align-items:center; }
.catalog-zoom-controls output { width:54px; text-align:center; font:13px/1.2 system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.catalog-preview button[data-catalog-fit] { width:auto; padding:0 12px; font-size:13px; }
.catalog-page-label select { height:44px; padding:0 25px 0 10px; font:13px system-ui,sans-serif; color:#222; background:#fff; border:1px solid #ced3d5; border-radius:3px; }
.catalog-help { flex:none; margin:0; padding:0 16px 8px; background:#fff; color:#555; font:12px/1.5 system-ui,sans-serif; }
.catalog-pages { position:relative; overflow:auto; flex:1; min-height:0; min-width:0; overscroll-behavior:contain; touch-action:none; scrollbar-gutter:stable; outline-offset:-3px; }
.catalog-pages.is-zoomed { cursor:grab; }
.catalog-pages.is-dragging { cursor:grabbing; user-select:none; }
.catalog-paper-stack { width:100%; min-width:100%; }
.catalog-paper-stack img { display:block; width:100%; max-width:none; height:auto; margin:0 0 12px; background:#fff; user-select:none; -webkit-user-drag:none; }
.catalog-paper-stack img:last-child { margin-bottom:0; }
.catalog-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body:has(.catalog-preview[open]) { overflow:hidden; }
@media(max-width:600px) {
 .catalog-preview { width:100%; height:100dvh; }
 .catalog-preview .catalog-header { padding:4px 10px; padding-top:max(4px, env(safe-area-inset-top)); gap:12px; }
 .catalog-toolbar { padding:6px 10px; gap:6px; }
 .catalog-zoom-controls,.catalog-page-controls { gap:3px; }
 .catalog-zoom-controls output { width:45px; font-size:12px; }
 .catalog-preview button[data-catalog-fit] { padding:0 8px; }
 .catalog-page-label select { padding-left:6px; padding-right:18px; }
 .catalog-help { padding:0 10px 6px; font-size:11px; }
 .catalog-pages { padding-bottom:env(safe-area-inset-bottom); }
}
/* Native-only additions; all data and media remain owned by WordPress. */
.native-viewer .catalog-pages { touch-action:auto; }
.native-viewer.is-fullscreen { width:100vw; height:100dvh; max-width:none; max-height:none; }
.native-viewer .product-catalog-page { margin:0 0 18px; }
.native-viewer .product-catalog-page h2 { font-size:14px; padding:12px 16px; }
.native-viewer .product-catalog-paper img { width:100%; height:auto; display:block; opacity:1; }
.native-viewer .native-pdf-frame { display:block; width:100%; height:70dvh; min-height:360px; border:0; background:#fff; }
.native-viewer .native-file-actions { display:flex; gap:24px; padding:12px 16px; flex-wrap:wrap; }
.native-viewer .native-file-note { padding:8px 16px; font-size:13px; }
.native-viewer .native-album-caption { margin-top:6px; }
.native-viewer .product-sheet-footer { display:flex; gap:24px; flex-wrap:wrap; }
.native-viewer .catalog-toolbar > button { font-size:13px; width:auto; padding:0 12px; }
.native-viewer .catalog-page-controls select { min-height:40px; }
.native-viewer .product-sheet-catalog { max-width:none; }
.native-viewer .project-album-thumbnails button[aria-pressed="true"] { outline:2px solid currentColor; outline-offset:2px; }
.native-viewer :is(button,a,select,[tabindex]):focus-visible { outline:3px solid #287aa8; outline-offset:2px; }
@media(max-width:600px) { .native-viewer .product-sheet-toolbar { flex-wrap:wrap; } .native-viewer .native-pdf-frame { height:65dvh; } }
.native-viewer .product-catalog-paper { aspect-ratio:auto; }
.native-viewer.product-sheet-dialog .catalog-toolbar button { min-width:40px; min-height:40px; padding:0 10px; border:1px solid #ced3d5; background:#fff; color:#222; cursor:pointer; }
.native-viewer.product-sheet-dialog .catalog-toolbar button:disabled { opacity:.4; cursor:default; }
.project-archive-card > .native-project-card-controls { position:static; display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:8px 0; }
.project-archive-card > .native-project-card-controls button { position:static; transform:none; color:inherit; }
.project-archive-card > .native-project-card-controls .project-card-photo-count { position:static; color:inherit; }
.native-project-card-caption { font-size:11px; line-height:1.5; margin:0 0 10px; }
