/* ---------- product photos: open all photos ---------- */
.gal-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gal-open:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.gal-count { position: absolute; right: .6rem; bottom: .6rem; padding: .3rem .55rem; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font: 700 .82rem/1 var(--font-body); }
.gal-dots { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 2px rgba(0, 0, 0, .4); }
.gal-dots i.on { background: #fff; }
html.gal-lock, html.gal-lock body { overflow: hidden; }
.gal { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #0b1020; color: #fff;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.gal[hidden] { display: none; }
.gal-top { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; }
.gal-title { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-num { font-variant-numeric: tabular-nums; opacity: .85; }
.gal-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.3rem; cursor: pointer; }
.gal-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 .5rem; touch-action: pan-y; }
.gal-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.gal-prev, .gal-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.gal-prev { left: .8rem; } .gal-next { right: .8rem; }
.gal-prev:hover, .gal-next:hover, .gal-x:hover { background: rgba(255, 255, 255, .3); }
.gal-prev:focus-visible, .gal-next:focus-visible, .gal-x:focus-visible, .gal-thumbs button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gal-thumbs { display: flex; gap: .45rem; justify-content: center; overflow-x: auto; padding: .7rem 1rem 1rem; }
.gal-thumbs[hidden] { display: none; }
.gal-thumbs button { flex: none; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; cursor: pointer; opacity: .6; }
.gal-thumbs button.on { border-color: var(--yellow); opacity: 1; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .gal-prev, .gal-next { width: 42px; height: 42px; font-size: 1.6rem; background: rgba(0, 0, 0, .35); }
  .gal-prev { left: .3rem; } .gal-next { right: .3rem; }
  .gal-thumbs { justify-content: flex-start; }
}
.bidp-media .gal-open { display: block; width: 100%; height: 100%; }

/* Seller: check your photos (seller_upload.php) */
.pv-open-all { margin-top: .6rem; }
.upl-thumb img { cursor: zoom-in; }
.gal-seller .gal-stage { position: relative; }
.pv-cover { position: absolute; left: 50%; top: .6rem; transform: translateX(-50%); padding: .3rem .7rem; border-radius: 999px; background: var(--yellow); color: var(--blue-deep); font-weight: 700; font-size: .85rem; }
.pv-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: .6rem 1rem 0; }
.pv-tools button { min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: 600 .95rem var(--font-body); cursor: pointer; }
.pv-tools button:hover:not(:disabled) { background: rgba(255, 255, 255, .3); }
.pv-tools button:disabled { opacity: .4; cursor: default; }
.pv-tools .pv-del { background: rgba(220, 38, 38, .35); }
.pv-tools .pv-done { background: var(--yellow); color: var(--blue-deep); }
.pv-tools button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pv-msg { min-height: 1.3em; margin: .4rem 0 0; text-align: center; font-weight: 600; color: #b7f7c8; }
.pv-msg.is-err { color: #fecaca; }
@media (max-width: 640px) { .pv-tools button { flex: 1 1 28%; padding: 0 .5rem; font-size: .9rem; } }
