/* Task 29936: document gallery, scoped to this page. */
.pm-documents { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0 24px; }
.pm-documents__item { display:flex; align-items:center; justify-content:center; aspect-ratio:3 / 4; padding:8px; box-sizing:border-box; min-width:0; background:#fafafa; border:1px solid #e2dede; border-radius:4px; cursor:zoom-in; transition:border-color .15s,box-shadow .15s; }
.pm-documents__item:hover,.pm-documents__item:focus-visible { border-color:#a41828; box-shadow:0 2px 8px #0002; outline:2px solid #a41828; outline-offset:2px; }
.pm-documents .pm-documents__item img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; margin:0; padding:0; }
.pm-document-viewer { position:fixed; inset:0; width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none; margin:0; padding:48px 16px 20px; box-sizing:border-box; border:0; background:rgba(15,12,14,.96); color:#fff; overflow:hidden; }
.pm-document-viewer::backdrop { background:#100d10e8; }
.pm-document-viewer[open] { display:flex; align-items:center; justify-content:center; }
.pm-document-viewer img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; margin:0; padding:0; }
.pm-document-viewer__close { position:absolute; top:8px; right:12px; width:40px; height:36px; border:1px solid #ffffff80; border-radius:4px; background:#333; color:#fff; font:28px/1 Arial,sans-serif; cursor:pointer; }
.pm-document-viewer__close:hover,.pm-document-viewer__close:focus-visible { background:#a41828; outline:2px solid #fff; }
@media(max-width:600px) { .pm-documents { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .pm-documents__item { padding:5px; } .pm-document-viewer { padding:48px 8px 12px; } }
@media(max-width:360px) { .pm-documents { grid-template-columns:1fr; } }
