/* The incoming canvas sits above the diary and below the live song controls and lyrics. */
.rain-bridge {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 6;
  isolation: isolate;
  pointer-events: none;
}

.rain-bridge-diary {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
}

#experience[data-theme="rain-watercolor"] .rain-bridge-diary { opacity: 1; }

.rain-bridge-mat {
  position: absolute;
  inset-block: max(calc(var(--reader-top) + 2px), 1.8dvh) max(calc(var(--reader-bottom) + 2px), 1.8dvh);
  inset-inline: var(--picture-gutter);
  display: grid;
  place-items: center;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
}

.rain-bridge-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

