html.keepsake-photo-open{overflow:hidden}
.keepsake-photo-viewer{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));max-height:92vh;max-height:92dvh;margin:auto;padding:0 16px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);overflow:auto;overscroll-behavior:contain}
.keepsake-photo-viewer::backdrop{background:#102e4dcc}
.photo-viewer-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;background:#fff}
.photo-viewer-heading h2{margin:0;font:600 17px/1.35 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere}
.photo-viewer-close{flex-shrink:0;align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:92px;min-height:44px;padding:9px 12px;border:1px solid #a6bed1;border-radius:5px;background:#184c78;color:#fff;font:600 15px/1.3 'Segoe UI',Arial,sans-serif;cursor:pointer}
.photo-viewer-close:hover{background:#102e4d}.photo-viewer-close:focus-visible{outline:3px solid #c99556;outline-offset:2px}.photo-viewer-close span{font-size:23px;line-height:1}
.photo-viewer-content{display:flex;justify-content:center;min-width:0}
.photo-viewer-content>img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(92vh - 100px);max-height:calc(92dvh - 100px);object-fit:contain}
.keepsake-photo-viewer .product-photo-frame{width:min(100%,760px);height:auto;background:transparent}
.keepsake-photo-viewer .product-photo-frame img{height:auto;max-height:calc(92dvh - 100px);object-fit:contain;transform:none}
.keepsake-photo-viewer .product-five-crop{width:min(100%,420px,60vh);aspect-ratio:445/485;background:#63543a}
.keepsake-photo-viewer .product-five-crop img{width:224.719101%;height:auto;max-height:none;object-fit:fill}
@media(max-width:500px){.keepsake-photo-viewer{padding:0 10px 10px}.photo-viewer-heading h2{font-size:14px}}
