/* H50: compact purchase guide and accessible, on-demand picture viewer. */
.picture-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px 18px;padding:20px;margin:0 0 14px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 18px #0b205b06}
.picture-cover{align-self:center;display:block;line-height:0;border:1px solid #e2d900;border-radius:8px;overflow:hidden}.picture-cover img{display:block;width:64px;height:auto;aspect-ratio:2/3;object-fit:contain;background:#fff100}
.picture-count{font-size:11px;font-weight:800;color:#586074}.picture-copy h3{margin:3px 0 5px;font-size:22px}.picture-copy p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}.picture-actions{grid-column:1/-1;display:flex;align-items:center;gap:20px}.picture-actions>.button{flex:1}.picture-pdf{font-size:12px;font-weight:800;white-space:nowrap}
.prepare-compact{padding:14px 20px;margin-bottom:12px;background:#fff}.prepare-compact summary{font-size:15px}.prepare-compact ul{margin-top:12px;font-size:14px}
.text-guide{background:#fff;border:1px solid var(--line);border-radius:18px;margin:0 0 18px}.text-guide>summary{padding:18px 20px;font-size:15px}.text-guide>summary small{display:block;margin-left:17px;font-size:11px;font-weight:500;color:var(--muted)}.text-guide-body{padding:0 12px 12px}.text-guide-body>.step{border-radius:12px;padding:16px 12px;box-shadow:none}.text-guide-body>.step:last-child{margin:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.purchase-gallery{padding:0;border:0;border-radius:20px;width:min(760px,calc(100vw - 24px));height:min(940px,calc(100dvh - 32px));max-width:none;max-height:calc(100dvh - 32px);color:var(--ink);background:white;box-shadow:0 20px 90px #07182e66}.purchase-gallery:not([open]){display:none}.purchase-gallery::backdrop{background:#07182ec9}.gallery-shell{height:100%;display:flex;flex-direction:column;min-height:0}.gallery-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px 12px;border-bottom:1px solid var(--line)}.gallery-head small{font-size:9px;font-weight:900;letter-spacing:.09em;color:var(--muted)}.gallery-head h2{font-size:21px;margin:2px 0 0}.gallery-close{width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#f4f6fa;color:var(--navy);font-size:30px;flex:none;line-height:1}.gallery-select{padding:10px 20px 0;display:flex;gap:10px;align-items:center}.gallery-select select{min-width:0;width:100%;font:600 13px/1.4 Guide,Arial,sans-serif;color:var(--navy);background:#fff;border:1px solid #bcc9dd;border-radius:8px;padding:10px 8px;min-height:44px}.gallery-tool{font-size:12px;font-weight:800;background:#eef2f8;border:1px solid #bcc9dd;border-radius:8px;padding:10px;min-height:44px;color:var(--navy);white-space:nowrap}.gallery-tool[aria-pressed=true]{background:var(--navy);color:white}.gallery-status{font-size:11px;color:var(--muted);margin:7px 20px 9px;min-height:18px}.gallery-stage{flex:1;min-height:0;overflow:auto;padding:12px;background:#e8edf4;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}.gallery-stage img{display:block;width:100%;height:auto;max-width:540px;margin:0 auto;border-radius:9px;box-shadow:0 4px 18px #07182e20}.gallery-stage.is-zoomed{touch-action:auto}.gallery-stage.is-zoomed img{width:180%;max-width:none;margin:0}.gallery-foot{flex:none;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}.gallery-foot nav{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}.gallery-foot .button{font-size:13px;min-height:44px;padding:9px 10px}.gallery-foot button:disabled{opacity:.42}.gallery-foot nav span{font-size:12px;font-weight:800;min-width:38px;text-align:center}.gallery-downloads{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;margin:10px 0 0}.gallery-downloads a,.gallery-downloads button{font:700 11px/1.6 Guide,Arial,sans-serif;color:var(--navy)}.gallery-downloads button{background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:4px}.gallery-foot>p{font-size:10px;color:var(--muted);text-align:center;margin:6px 0 0}.gallery-stage #galleryError{padding:24px;background:white;border-radius:12px;font-size:14px}select:focus-visible,.gallery-stage:focus-visible{outline:3px solid #326dc5;outline-offset:2px}
@media(max-width:520px){.hero{padding:21px 20px}.hero h1{font-size:28px;margin-bottom:10px}.hero>p{margin-bottom:16px}.picture-card{padding:16px;gap:10px 14px}.picture-copy h3{font-size:20px}.picture-actions{gap:14px}.picture-actions>.button{font-size:13px}.picture-pdf{font-size:11px}.purchase-gallery{width:100%;height:100dvh;max-height:100dvh;max-width:100%;border-radius:0;margin:0}.gallery-head{padding:12px 14px 10px}.gallery-head h2{font-size:18px}.gallery-select{padding:9px 12px 0}.gallery-status{margin:6px 12px 8px}.gallery-stage{padding:8px}.gallery-stage img{border-radius:6px}.gallery-foot{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.gallery-foot nav{gap:8px}.gallery-downloads{gap:12px}}
.gallery-stage img[hidden]{display:none}
.picture-owner{grid-column:1/-1;font-size:11px;line-height:1.5;color:var(--muted);margin:0;border-top:1px solid var(--line);padding-top:10px;overflow-wrap:anywhere}.picture-pdf{border:0;background:transparent;color:var(--navy);padding:8px 0;cursor:pointer;text-decoration:underline}.gallery-owner{margin:8px 20px 0;color:var(--navy);font-size:11px;line-height:1.4;overflow-wrap:anywhere}.picture-export{grid-column:1/-1;font-size:12px;overflow-wrap:anywhere}.picture-export:empty{display:none}.picture-export p{margin:6px 0}.picture-export .button{font-size:12px;min-height:40px;margin:4px 8px 0 0;padding:8px 12px}.gallery-foot .picture-export{max-height:120px;overflow:auto}.gallery-downloads button{min-height:36px;cursor:pointer}
@media print{.picture-card,.purchase-gallery{display:none!important}.text-guide{border:0}.text-guide>summary,.prepare-compact>summary{display:none}.text-guide-body{padding:0}}
