.ld-gallery-trigger{cursor:zoom-in}
.ld-gallery-trigger:focus-visible{outline:3px solid #276cad;outline-offset:-4px}
html:has(.ld-product-gallery[open]){overflow:hidden}
.ld-product-gallery{
  box-sizing:border-box;width:min(1050px,calc(100% - 20px));max-width:none;height:min(820px,calc(100dvh - 20px));max-height:none;
  margin:auto;padding:12px;border:1px solid #b8cfe4;border-radius:20px;background:linear-gradient(150deg,#fff,#eaf4ff);
  color:#173a5c;box-shadow:0 22px 80px #102b4b58;overscroll-behavior:contain;
}
.ld-product-gallery[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px}
.ld-product-gallery::backdrop{background:#0b2033bd}
.ld-product-gallery .ld-gallery-bar{display:flex;gap:8px;align-items:center}
.ld-product-gallery .ld-gallery-bar button:last-child{margin-left:auto}
.ld-product-gallery h2{font:700 clamp(1rem,3vw,1.4rem)/1.25 system-ui;margin:0;overflow-wrap:anywhere}
.ld-product-gallery .ld-gallery-stage{min-height:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px}
.ld-product-gallery .ld-gallery-stage img{grid-column:2;grid-row:1;display:block;width:100%;height:100%;min-height:0;object-fit:contain;touch-action:pan-y pinch-zoom}
.ld-product-gallery .ld-gallery-stage:has([hidden]){grid-template-columns:minmax(0,1fr)}
.ld-product-gallery .ld-gallery-stage:has([hidden]) img{grid-column:1}
.ld-product-gallery button{
  display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:4px 10px;line-height:1.1;border:1px solid #a9c4df;
  border-radius:12px;color:#173a5c;background:linear-gradient(#fff,#eaf4ff);box-shadow:0 2px 5px #123c631a;cursor:pointer;
}
.ld-product-gallery .ld-gallery-stage button{font-size:1.65rem;padding:0}
.ld-product-gallery [hidden]{display:none!important}
.ld-product-gallery button:focus-visible{outline:3px solid #276cad;outline-offset:2px}
.ld-product-gallery p{margin:0;text-align:center;font:600 .875rem/1.3 system-ui}
