.model-photo-gallery{min-width:0;margin-bottom:16px}.model-photo-stage{aspect-ratio:3/2;border:1px solid var(--line);background:#eef2f5;justify-content:center;align-items:center;display:flex}.model-photo-stage img{object-fit:contain;width:100%;height:100%;display:block}.model-photo-stage{touch-action:pan-y pinch-zoom}.gallery-controls{color:var(--navy);justify-content:space-between;align-items:center;gap:16px;margin-top:8px;font-size:14px;font-weight:700;display:flex}.gallery-controls button{width:48px;min-height:44px;color:var(--navy);cursor:pointer;background:#fff;border:1px solid #b7c5d5;border-radius:3px;font-size:24px}.gallery-controls button:focus-visible{outline-offset:2px;outline:3px solid #2160e8}.model-photo-caption{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:8px;margin:10px 0;font-size:11px;line-height:1.6;display:flex}.model-photo-caption p{margin:0}.model-photo-caption a{text-underline-offset:3px;text-decoration:underline}.model-photo-thumbs{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;display:grid}.model-photo-thumbs button{cursor:pointer;background:#eef2f5;border:2px solid #0000;min-width:0;min-height:44px;padding:2px}.model-photo-thumbs button[aria-pressed=true]{border-color:#2160e8}.model-photo-thumbs img{aspect-ratio:3/2;object-fit:contain;width:100%;height:auto;display:block}.model-photo-thumbs button:focus-visible{outline-offset:2px;outline:3px solid #bf7915}@media (max-width:480px){.model-photo-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}}.gallery-opener{cursor:zoom-in;width:100%;padding:0;overflow:hidden}.gallery-opener:focus-visible{outline-offset:3px;outline:3px solid #2160e8}.gallery-dialog{color:#fff;background:#101b2c;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;overflow:hidden}.gallery-dialog::backdrop{background:#101b2c}.gallery-dialog-layout{height:100%;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));grid-template-rows:auto minmax(0,1fr) auto;gap:12px;display:grid}.gallery-dialog-top,.gallery-dialog-actions{justify-content:space-between;align-items:center;gap:12px;font-size:18px;font-weight:700;display:flex}.gallery-dialog button{color:#14213d;min-height:48px;font:inherit;cursor:pointer;background:#fff;border:1px solid #c5d1e1;border-radius:4px;padding:10px 20px;font-weight:700}.gallery-dialog button:focus-visible{outline-offset:3px;outline:3px solid #77b1ff}.gallery-dialog-photo{touch-action:pan-y pinch-zoom;min-height:0;position:relative}.gallery-dialog-actions button{min-width:120px}.gallery-dialog button{touch-action:manipulation}
