/* Product photo gallery (gallery.js): the thumbnail row under the product picture and the photo dialog of the accessories page.
   Flat: lines only, no shadows. Colours follow the page tokens (--th-fg / --th-bg), so light and dark both work; the row scrolls sideways on phones. */
.pp-gal{grid-area:art;justify-self:end;align-self:start;width:100%;max-width:600px;min-width:0}
.pp-gal .pp-art{justify-self:stretch;max-width:none}
.gal-row{display:flex;gap:10px;margin-top:12px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px;scrollbar-width:thin}
.gal-t{flex:none;width:72px;height:72px;padding:0;border:2px solid rgb(var(--th-fg-rgb,0 0 0) / .28);background:transparent;cursor:pointer;scroll-snap-align:start;display:block}
.gal-t img{display:block;width:100%;height:100%;object-fit:contain}
.gal-t[aria-current=true]{border-color:var(--th-fg,currentColor)}
.gal-t:hover{border-color:var(--th-fg,currentColor)}
.gal-t:focus-visible{outline:3px solid var(--th-ring,currentColor);outline-offset:2px}
@media (max-width:899px){.pp-gal{justify-self:center;max-width:min(100%,420px)}.gal-t{width:64px;height:64px}}

/* accessories: the photo dialog */
.ax-photos{position:relative;z-index:2;display:inline-flex;align-items:center;min-height:44px;padding:0 4px;border:0;background:none;color:inherit;font:400 clamp(14px,1.15vw,17px)/1 var(--mc);letter-spacing:.05em;text-transform:uppercase;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.ax-photos:focus-visible{outline:3px solid var(--th-ring,currentColor);outline-offset:2px}
.ax-dlg{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:16px;border:2px solid var(--th-fg,#000);background:var(--th-bg,#fff0e1);color:var(--th-fg,#000);overflow:auto}
.ax-dlg::backdrop{background:rgb(0 0 0 / .6)}
.ax-dlg-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ax-dlg-t{font:400 clamp(16px,4vw,22px)/1.1 var(--mc);text-transform:uppercase;min-width:0}
.ax-dlg-x{flex:none;min-width:44px;min-height:44px;border:2px solid var(--th-fg,#000);background:transparent;color:inherit;font:400 14px/1 var(--mc);cursor:pointer;padding:0 12px}
.ax-dlg-x:focus-visible{outline:3px solid var(--th-ring,currentColor);outline-offset:2px}
.ax-dlg-main{aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;border:2px solid rgb(var(--th-fg-rgb,0 0 0) / .28)}
.ax-dlg-main img{display:block;width:100%;height:100%;object-fit:contain}
