.robot-dog-page .section {
  margin-top: 56px;
}

.robot-dog-page .section:first-of-type {
  margin-top: 24px;
}

.robot-dog-page .story-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.25fr);
  gap: 44px;
  align-items: start;
}

.robot-dog-page .story-copy {
  max-width: 900px;
  margin: 0;
}

.robot-dog-page .story-media {
  width: 100%;
  margin: 6px 0 0;
}

#balancing .story-media {
  width: 65%;
  margin-left: auto;
  margin-right: auto;
}

#locomotion .story-media {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.robot-dog-page .story-media img,
.robot-dog-page .story-media video {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.robot-dog-page .story-media > figcaption {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0;
}

@media (max-width: 980px) {
  .robot-dog-page .story-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .robot-dog-page .story-media {
    margin-top: 0;
  }

  #balancing .story-media {
    width: 100%;
  }

  #locomotion .story-media {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .robot-dog-page .section {
    margin-top: 32px;
  }

  .robot-dog-page .section:first-of-type {
    margin-top: 16px;
  }
}
