/* ONCU_LIGHTBOX_CENTER_FIX_V1_1
   Fix: On single-image product, hidden arrows left the canvas trapped in
   the 54px first grid column. Flex automatically removes hidden arrow space.
   This file is loaded AFTER oncu-product-lightbox-v1.css.
*/
.ot-product-lightbox .ot-pl-stage {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}
.ot-product-lightbox .ot-pl-canvas {
  display: flex;
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.ot-product-lightbox .ot-pl-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}
.ot-product-lightbox .ot-pl-arrow {
  flex: 0 0 54px;
  width: 54px;
  align-self: center;
}
/* Keep the existing enlarge/pan feature intact. */
.ot-product-lightbox.ot-pl-is-zoomed .ot-pl-image {
  max-width: none;
  max-height: none;
  min-width: 150%;
  width: 150%;
  height: auto;
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .ot-product-lightbox .ot-pl-stage { gap: 3px; }
  .ot-product-lightbox .ot-pl-arrow { flex-basis: 34px; width: 34px; }
}
