body.ladp-live .lunavia-product-stage > .ladp-gallery-original[hidden] { display: none !important; }
body.ladp-live .lunavia-product-stage > .ladp-gallery {
  grid-area: media;
  display: grid;
  gap: 10px;
  align-self: start;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--ladp-ink, #302933);
  font-family: var(--ladp-sans, Manrope, sans-serif);
}
.ladp-live .ladp-gallery-display {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.12;
  overflow: hidden;
  border: 1px solid var(--ladp-rule, #dfd5cf);
  border-radius: 3px;
  background: var(--ladp-tile, #f5f1e9);
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}
.ladp-live .ladp-gallery-display > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.ladp-live .ladp-gallery-loupe {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  background: #fffcf5f5;
  border: 1px solid var(--ladp-rule, #dfd5cf);
  border-radius: 30px;
  color: var(--ladp-ink, #302933);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.ladp-live .ladp-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ladp-live .ladp-gallery .ladp-gallery-thumb {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  min-height: 0;
  padding: 3px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ladp-rule, #dfd5cf);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
}
.ladp-live .ladp-gallery .ladp-gallery-thumb[aria-pressed="true"] {
  padding: 2px;
  border: 2px solid var(--ladp-plum, #513c50);
}
.ladp-live .ladp-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ladp-live .ladp-gallery .ladp-gallery-caption {
  display: flex;
  gap: 12px;
  margin: 0;
  color: var(--ladp-dim, #625761);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.ladp-live .ladp-gallery-index { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.ladp-live .ladp-gallery-lightbox:not([open]) { display: none; }
.ladp-live .ladp-gallery-lightbox[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  width: min(1100px, 95vw);
  height: min(1000px, 92vh);
  height: min(1000px, 92dvh);
  max-width: 95vw;
  max-height: 92vh;
  max-height: 92dvh;
  box-sizing: border-box;
  margin: auto;
  padding: clamp(12px, 2vw, 24px);
  border: 0;
  border-radius: 4px;
  background: var(--ladp-cream, #faf7f3);
  color: var(--ladp-ink, #302933);
  font: 500 15px/1.4 var(--ladp-sans, Manrope, sans-serif);
}
.ladp-live .ladp-gallery-lightbox::backdrop { background: #211620bd; }
.ladp-live .ladp-gallery-zoom-area { min-width: 0; min-height: 0; overflow: auto; background: var(--ladp-tile, #f5f1e9); }
.ladp-live .ladp-gallery-zoom-area > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ladp-live .ladp-gallery-zoom-area.ladp-original-size > img { width: auto; height: auto; max-width: none; max-height: none; margin-inline: auto; }
.ladp-live .ladp-gallery-zoom-text { margin: 0; text-align: center; }
.ladp-live .ladp-gallery-controls { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.ladp-live .ladp-gallery-controls button {
  min-height: 44px;
  padding: 7px 12px;
  margin: 0;
  border: 1px solid var(--ladp-rule, #d3c7cf);
  border-radius: 3px;
  background: var(--ladp-paper, #fffdf9);
  color: inherit;
  box-shadow: none;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}
.ladp-live .ladp-gallery-controls [hidden] { display: none; }
.ladp-live .ladp-gallery :focus-visible, .ladp-live .ladp-gallery-lightbox :focus-visible {
  outline: 3px solid #765277;
  outline-offset: 2px;
}
@media (min-width: 801px) and (min-height: 800px) {
  body.ladp-live .lunavia-product-stage > .ladp-gallery { position: sticky; top: 18px; }
}
@media (max-width: 800px) {
  body.ladp-live .lunavia-product-stage > .ladp-gallery { gap: 7px; }
  .ladp-live .ladp-gallery-display { aspect-ratio: 1.15; }
  .ladp-live .ladp-gallery .ladp-gallery-thumb { width: 48px; height: 48px; }
  .ladp-live .ladp-gallery-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .ladp-live .ladp-gallery-lightbox[open] { width: 96vw; max-width: 96vw; }
}
