.product-modal-image:has(.camera-gallery-trigger){position:relative}
.camera-gallery-trigger{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border-radius:inherit;cursor:zoom-in}
.camera-gallery-trigger span{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:#064a91;color:white;box-shadow:0 1px 4px #0002}
.camera-gallery-trigger svg{width:20px;height:20px}
.camera-gallery-dialog{width:min(640px,calc(100% - 20px),max(300px,calc(52dvh + 34px)));max-width:640px;max-height:calc(100dvh - 24px);margin:auto;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.camera-gallery-dialog::backdrop{background:rgba(14,21,25,.72)}
.camera-gallery-dialog[open]{animation:camera-gallery-enter 1800ms cubic-bezier(.16,1,.3,1) both}
.camera-gallery-dialog[open]::backdrop{animation:camera-gallery-backdrop-enter 350ms ease-out both}
@keyframes camera-gallery-enter{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
@keyframes camera-gallery-backdrop-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.camera-gallery-dialog[open],.camera-gallery-dialog[open]::backdrop{animation:none}}
.camera-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.camera-gallery-header h2{font-size:20px;line-height:1.3;font-weight:600;letter-spacing:-.5px}
.camera-gallery-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--soft)}
.camera-gallery-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;border-radius:12px;background:var(--soft)}
.camera-gallery-track::-webkit-scrollbar,.camera-gallery-thumbnails::-webkit-scrollbar{display:none}
.camera-gallery-slide{flex:0 0 100%;min-width:0;aspect-ratio:1;position:relative;scroll-snap-align:start;scroll-snap-stop:always}
.camera-gallery-slide img{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:contain;padding:10px;user-select:none}
.camera-gallery-thumbnails{position:relative;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-top:12px;padding:4px;overscroll-behavior-x:contain}
.camera-gallery-thumbnails button{flex:0 0 60px;width:60px;height:60px;padding:3px;border:2px solid transparent;border-radius:9px;background:var(--soft)}
.camera-gallery-thumbnails button[aria-pressed=true]{border-color:#064a91;background:#eaf2fb}
.camera-gallery-thumbnails img{width:100%;height:100%;object-fit:contain;border-radius:4px}
@media(max-width:680px){
  .camera-gallery-trigger span{right:4px;bottom:4px;width:24px;height:24px}
  .camera-gallery-trigger svg{width:16px;height:16px}
}
