/* Product photography: use the existing light theme and accessibility palette. */
.product-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-detail > * { min-width: 0; }
.product-gallery { min-width:0; gap:.85rem; }
.gallery-stage { display:grid; gap:.85rem; min-width:0; }
.gallery-slide { min-width:0; border:1px solid var(--line); border-radius:1.2rem; background:var(--soft); overflow:hidden; }
.gallery-slide img { display:block; width:100%; aspect-ratio:6/5; height:auto; max-height:34rem; object-fit:contain; border:0; border-radius:0; }
.gallery-controls { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.5rem; align-items:center; }
.gallery-arrow { width:48px; height:48px; min-height:48px; min-width:48px; padding:0; border-radius:50%; }
.gallery-arrow svg { width:1.35rem; height:1.35rem; }
.gallery-counter { margin:0; text-align:center; font-size:.9rem; color:var(--muted); overflow-wrap:anywhere; }
.gallery-thumbnails { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,4.5rem),1fr)); gap:.65rem; min-width:0; padding:4px; }
button.gallery-thumb { display:grid; grid-template-columns:minmax(0,1fr); gap:.2rem; align-content:start; width:100%; min-height:44px; padding:.3rem; background:var(--white); color:var(--ink); border:2px solid var(--control); border-radius:.8rem; box-shadow:none; }
.gallery-thumb img { width:100%; aspect-ratio:1; height:auto; object-fit:contain; border:0; border-radius:.4rem; }
.gallery-thumb span { font-size:.75rem; line-height:1.4; }
button.gallery-thumb[aria-current=true] { border-color:var(--accent-strong); outline:1px solid var(--accent-strong); background:var(--soft); font-weight:700; }
button.gallery-thumb:focus-visible, .gallery-arrow:focus-visible, .photo-delete summary:focus-visible, .photo-danger:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.gallery-enhanced .gallery-stage { touch-action:pan-y pinch-zoom; }
.admin-photos h2 { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; }
.photo-count { font-size:.85em; font-weight:400; color:var(--muted); }
.admin-photo-list { list-style:none; margin:0; padding:0; display:grid; gap:1rem; }
.admin-photo-card { border:1px solid var(--line); border-radius:1rem; background:var(--white); overflow:hidden; min-width:0; }
.admin-photo-card > img { width:100%; aspect-ratio:4/3; height:auto; max-height:15rem; object-fit:contain; background:var(--soft); }
.admin-photo-info { padding:.85rem; min-width:0; overflow-wrap:anywhere; }
.admin-photo-info p { margin:.2rem 0 .45rem; }
.admin-photo-info .pill { white-space:normal; }
.admin-photo-info > a { display:inline-flex; min-height:44px; align-items:center; }
.photo-delete { margin-top:.5rem; border-top:1px solid var(--line); }
.photo-delete summary { cursor:pointer; padding:.65rem .15rem; min-height:44px; color:var(--error); font-weight:600; }
.photo-delete form { margin-top:.4rem; }
.photo-delete form p { font-size:.9rem; margin-bottom:.8rem; }
button.photo-danger { color:var(--white); background:var(--error); border:1px solid var(--error); width:100%; white-space:normal; overflow-wrap:anywhere; }
button.photo-danger:hover { color:var(--error); background:var(--white); }
.pref-contrast button.photo-danger { color:#000; background:var(--error); border-color:var(--error); }
.pref-contrast button.photo-danger:hover { color:var(--error); background:var(--white); }
@media(max-width:850px) { .product-detail { grid-template-columns:minmax(0,1fr); } }
:root[data-scale='150'] .product-detail, :root[data-scale='200'] .product-detail { grid-template-columns:minmax(0,1fr); }
@media(max-width:480px) { .gallery-thumbnails { grid-template-columns:repeat(auto-fill,minmax(min(100%,4rem),1fr)); gap:.5rem; } }
