html:has(> body.photo191-open > dialog.photo191[open]),
body.photo191-open {
  overflow: hidden;
  scrollbar-gutter: auto;
}

dialog.photo191 {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}

dialog.photo191[open] {
  display: flex;
  flex-direction: column;
}

dialog.photo191::backdrop {
  background: #000;
}

dialog.photo191 button[data-photo-close191] {
  position: absolute;
  z-index: 1;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

dialog.photo191 button[data-photo-close191] > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #ffffff59;
  border-radius: inherit;
  background: #000b;
  color: #fff;
  font: 26px/1 Arial, sans-serif;
}

dialog.photo191 button[data-photo-close191]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.photo191-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
}

.photo191-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  flex-shrink: 0;
  pointer-events: none;
}

.photo191-stage p {
  position: absolute;
  padding: 24px;
  font-size: 18px;
  text-align: center;
  color: #fff;
}
/* R12 video does not capture the OS/browser Back edge gesture. */
.photo191 [hidden]{display:none!important}.photo191-stage.media192-video{touch-action:auto;user-select:auto}.photo191-stage video{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.photo191-stage.media192-video p{pointer-events:none;background:#152635ee;bottom:44px;max-width:90%;font-size:16px}.photo191 .media192-download{color:#fff;text-decoration:underline;font-size:16px;min-height:36px}.media192-open{display:inline-block;max-width:100%}.media192-upload-note{font-size:16px;line-height:1.55;padding:10px 0}.media192-preview video{max-width:100%;max-height:240px}.video-report192{display:block;font-size:10pt;line-height:1.35;text-align:center;padding:3px 0;color:#253846}
@media print{dialog.photo191,.media192-upload-note{display:none!important}.video-report192{font-size:9pt;color:#000}}
