/* The photograph stays visible beneath a moving, multiply-blended shadow. */
.moon-plate.lunar-instrument {
  width: min(100%, 270px);
  margin: 16px auto 0;
  aspect-ratio: 1.55;
  align-self: center;
}
.lunar-sky {
  position: absolute;
  inset: 0 0 26px;
  isolation: isolate;
}
.lunar-globe {
  position: absolute;
  top: 50%; left: 50%;
  width: 49%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  isolation: isolate;
  overflow: hidden;
  border-radius: 50%;
  background: #293441;
}
.lunar-globe img, .lunar-globe canvas {
  display: block;
  width: 100%; height: 100%;
}
.lunar-globe img { filter: grayscale(.74) contrast(1.04); }
.lunar-globe canvas { position: absolute; inset: 0; mix-blend-mode: multiply; }

/* Two halves of one orbit let the marker pass in front of and behind the Moon. */
.lunar-plane {
  position: absolute;
  inset: 32% 5%;
  transform: rotate(-16deg);
}
.lunar-plane::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #c4cedb;
  border-radius: 50%;
}
.lunar-plane--near { clip-path: inset(50% -6px -6px); }
.lunar-plane--near::before { border-color: rgb(151 170 194 / 76%); }
.lunar-probe {
  position: absolute;
  left: var(--probe-x, 87%); top: var(--probe-y, 83%);
  width: 6px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #3e6392;
}
.lunar-instrument figcaption {
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  font-size: .75rem;
  line-height: 1.4;
}
.lunar-instrument .moon-caption-prefix { color: #657384; }
.lunar-instrument [data-full] { font-weight: 580; color: #39495b; }
