@media (max-width: 767px) {
  img[data-mobile-preview] {
    cursor: zoom-in;
    pointer-events: auto !important;
  }
  img[data-mobile-preview]:focus-visible {
    outline: 2px solid var(--ds-accent, #dd6352);
    outline-offset: 4px;
  }
}
dialog.ds-image-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--ds-background, #fff);
  color: var(--ds-text, #000c1f);
  z-index: 2147483647;
}
.ds-image-viewer::backdrop {
  background: #000b;
}
.ds-image-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--ds-line, #ddd);
}
.ds-image-viewer-bar strong {
  font:
    500 14px/1.3 Arial,
    sans-serif;
}
.ds-image-viewer-bar button {
  font:
    500 14px/1.3 Arial,
    sans-serif;
  border: 1px solid var(--ds-line, #ddd);
  border-radius: 30px;
  padding: 12px 16px;
  color: inherit;
  background: var(--ds-surface, #eee);
  min-height: 44px;
}
.ds-image-viewer-body {
  height: calc(100dvh - 82px - env(safe-area-inset-top));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  touch-action: pan-x pan-y pinch-zoom;
}
.ds-image-viewer-body img {
  display: block;
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  border-radius: 0;
  box-shadow: none;
}
.ds-image-viewer-body.is-zoomed img {
  width: 200%;
  min-width: 900px;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: initial !important;
}
