/* Only the actual picture and its close (x) overlay are visible. */
.omr-gallery[hidden] { display: none !important; }
.omr-gallery {
  position: fixed; z-index: 9999; left: 20px; bottom: 20px;
  overflow: hidden; isolation: isolate;
  width: min(440px, calc(100vw - 24px)); aspect-ratio: 16 / 9;
  background: #f6f5f8; border: 1px solid rgba(190, 165, 207, .75);
  border-radius: 15px;
  box-shadow: 0 15px 44px rgba(28, 27, 38, .26);
  direction: ltr; box-sizing: border-box;
}
.omr-gallery-image {
  display: block; width: 100%; height: 100%;
  object-fit: contain; /* Pop-up dimensions follow image aspect ratio: no crops or empty bars. */
  background: #fff;
}
.omr-gallery-close {
  position: absolute; z-index: 1; top: 7px; right: 7px;
  display: grid; place-items: center; width: 34px; height: 34px;
  padding: 0 0 2px; margin: 0; border: 0; border-radius: 50%;
  color: #fff; background: rgba(20, 19, 29, .78);
  font: normal 28px/1 Arial, sans-serif; cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .23);
}
.omr-gallery-close:hover { background: rgba(20, 19, 29, .94); }
.omr-gallery-close:focus-visible { outline: 3px solid #e39de4; outline-offset: 2px; }
@media (max-width: 600px) {
  .omr-gallery { left: 10px; bottom: 10px; border-radius: 11px; }
  .omr-gallery-close { width: 32px; height: 32px; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .omr-gallery * { transition: none !important; } }
