 .product-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:4px 2px 10px}
.product-album-photo{display:block;min-width:0;padding:8px 8px 22px;border:1px solid #eee7f4;border-radius:3px;background:#fff;box-shadow:0 4px 12px #35204318}
.product-album-photo img{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#f7f4fa}
@media(max-width:760px){.product-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-album-photo{padding:5px 5px 15px}}

.product-album-more summary{width:fit-content;padding:10px 0;color:#704ba5;cursor:pointer;font-weight:600}
.product-album-manage{margin-block-end:10px}
.product-album-management label.product-album-photo{position:relative;cursor:pointer}
.product-album-management label.product-album-photo:has(input:checked){outline:2px solid #7950bb;outline-offset:1px}
.product-album-management input[type=checkbox]{position:absolute;top:14px;right:14px;width:22px;height:22px;accent-color:#7950bb}
.product-album-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}

.product-album-actions{flex-wrap:wrap}

.product-album-grid.product-album-management{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:760px){
 .product-album-grid.product-album-management{gap:6px}
 .product-album-management label.product-album-photo{padding:3px 3px 8px}
 .product-album-management input[type=checkbox]{top:5px;right:5px;width:16px;height:16px;margin:0}
}

.product-album-management label.product-album-photo{
 cursor:grab;touch-action:none;user-select:none
}
.product-album-management .product-album-photo input{cursor:pointer}
.product-album-management .is-album-dragging{opacity:.62}
.product-album-drag-ghost{
 position:fixed;top:0;left:0;z-index:10000;pointer-events:none;object-fit:cover;
 border-radius:5px;opacity:.72;box-shadow:0 6px 20px #24143d50;
}


.product-album-viewer{box-sizing:border-box;width:min(900px,calc(100% - 24px));inset-block-start:calc(8px + env(safe-area-inset-top,0px));inset-block-end:calc(32px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 40px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:26px 12px 24px;border:0;border-radius:14px;background:#24202c;color:white}
.product-album-viewer::backdrop{
 background:#160f20b0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)
}
.product-album-viewer-stage{position:relative}
.product-album-viewer-stage>img{display:block;width:100%;height:min(68dvh,700px);object-fit:contain}
.product-album-viewer-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:10px}
.product-album-viewer button{min-height:40px;padding:0 12px;border:0;border-radius:8px;background:#40374a;color:white;font:inherit;cursor:pointer}
.product-album-viewer button:disabled{opacity:.35;cursor:default}
.product-album-viewer .product-album-viewer-close{position:absolute;top:2px;right:8px;min-height:36px;font-size:26px;background:#24202cd9;z-index:1}

html.product-album-viewer-open{overflow:hidden;overscroll-behavior:none}
html.product-album-viewer-open>body{position:fixed;top:var(--album-scroll-top);left:0;right:0;overflow:hidden}
.product-album-viewer{overscroll-behavior:contain}

@media(max-width:760px),(pointer:coarse){
 html.product-share-app{
  width:100%;overflow-x:clip;overscroll-behavior-x:none;touch-action:pan-y;
  -webkit-text-size-adjust:100%;text-size-adjust:100%
 }
 .product-share-app body{max-width:100%;overflow-x:clip;touch-action:pan-y}
 .product-share-app :is(input,select,textarea){font-size:16px}
}

.product-album-viewfinder{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}
.product-album-viewfinder>span{position:absolute;width:clamp(10px,5%,24px);aspect-ratio:1;border:solid #ffffff80;border-width:0;filter:drop-shadow(0 1px 1px #0004)}
.product-album-viewfinder>span:nth-child(1){top:5%;left:5%;border-top-width:1px;border-left-width:1px}
.product-album-viewfinder>span:nth-child(2){top:5%;right:5%;border-top-width:1px;border-right-width:1px}
.product-album-viewfinder>span:nth-child(3){bottom:5%;left:5%;border-bottom-width:1px;border-left-width:1px}
.product-album-viewfinder>span:nth-child(4){bottom:5%;right:5%;border-bottom-width:1px;border-right-width:1px}
.product-album-viewfinder>span:nth-child(5){top:50%;left:50%;transform:translate(-50%,-50%);border:0;width:clamp(18px,7.5%,46px);opacity:0;
 --focus-line:linear-gradient(#ffffff55,#ffffff55);
 background:
  var(--focus-line) left top/28% 1px,var(--focus-line) left top/1px 28%,
  var(--focus-line) right top/28% 1px,var(--focus-line) right top/1px 28%,
  var(--focus-line) left bottom/28% 1px,var(--focus-line) left bottom/1px 28%,
  var(--focus-line) right bottom/28% 1px,var(--focus-line) right bottom/1px 28%;
 background-repeat:no-repeat}

@media(prefers-reduced-motion:reduce){.product-album-viewfinder>span:nth-child(5){opacity:.48}}
