/* Layout additions scoped to the telescope article. */
body.telescope-page .telescope-demo-figure {
  width: min(100%, 760px);
  margin: 1.6rem auto 2.4rem;
}

.telescope-page .telescope-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.telescope-page .telescope-video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.telescope-page .telescope-photo-grid.telescope-render-grid img {
  height: auto;
  aspect-ratio: 4 / 3;
  background: white;
}

.telescope-page .telescope-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  max-width: 760px;
  margin-inline: auto;
}

.telescope-page .telescope-photo-grid .doc-figure {
  margin: 1.5rem 0;
  min-width: 0;
}

.telescope-page .telescope-photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f8fafc;
}

.telescope-page .telescope-connection-photo {
  max-width: 400px;
  margin-inline: auto;
}

.telescope-page .telescope-connection-photo img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.telescope-page .telescope-photo-grid.telescope-diagram-grid img {
  height: 220px;
  background: white;
}

body.telescope-page .telescope-local-video {
  width: min(100%, 640px);
}

.telescope-page .telescope-local-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  background: #111827;
}

body.telescope-page .telescope-target-photo {
  width: min(100%, 320px);
}

.telescope-page .telescope-target-photo img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}

@media (max-width: 680px) {
  .telescope-page .telescope-photo-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .telescope-page .telescope-photo-grid img {
    height: auto;
    max-height: 300px;
  }
}
