/* Keep the AI Dance layout and give this page a white canvas. */
#movo-content.motion-graphics {
  background: #fff;
  color: #17171a;
}

#movo-content.motion-graphics > :is(.dance-hero, .dance-gallery, .dance-container.dance-section) :is(h1, h2, h3) {
  color: #17171a;
}

#movo-content.motion-graphics > :is(.dance-hero, .dance-gallery, .dance-container.dance-section) :is(p, .trial-note, .feature-icon) {
  color: #505057;
}

#movo-content.motion-graphics .faq details {
  border-bottom-color: #dedee3;
}

#movo-content.motion-graphics > :is(.dance-how, .dance-more-templates, .dance-tools) {
  background: #efede8;
  color: #17171a;
}

#movo-content.motion-graphics > :is(.dance-how, .dance-more-templates, .dance-tools) :is(h2, h3) {
  color: #17171a;
}

#movo-content.motion-graphics > :is(.dance-how, .dance-more-templates, .dance-tools) :is(p, .step-label) {
  color: #505057;
}

#movo-content.motion-graphics .dance-final .final-copy {
  max-width: 52%;
}

#movo-content.motion-graphics .motion-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #303038;
  background: #14141a;
  color: #b8b5bf;
  text-align: center;
  font-size: 14px;
}

#movo-content.motion-graphics .steps .motion-placeholder {
  display: grid;
  background: #14141a;
}

#movo-content.motion-graphics .steps video.step-image {
  object-fit: cover;
  object-position: left center;
  background: #111;
}

#movo-content.motion-graphics .final-art img {
  background: #fff;
}

@media (max-width: 800px) {
  #movo-content.motion-graphics .dance-final {
    padding-bottom: 160px;
  }

  #movo-content.motion-graphics .dance-final .final-copy {
    max-width: 100%;
  }

  #movo-content.motion-graphics .final-art {
    top: auto;
    width: 46%;
    height: 148px;
  }
}

#movo-content.motion-graphics .dance-hero h1 {
  white-space: normal;
}

#movo-content.motion-graphics .faq p .text-link {
  display: inline;
  padding: 0;
  text-decoration: underline;
}

/* Use the shared light shell with an opaque white navigation surface on this page. */
html[data-motion-graphics-page] header[data-movo-shell="header"]::before {
  background: #fff;
}

/* Scale intrinsic GIF dimensions to the width of each template card. */
#movo-content.motion-graphics .idea-grid img.template-video {
  height: auto;
}

/* Clip the cover and caption together so no dark backing shows at the corners. */
#movo-content.motion-graphics :is(.idea-grid, .template-grid) .dance-template {
  background: transparent;
  overflow: visible;
  clip-path: inset(0 round 20px);
}

#movo-content.motion-graphics :is(.idea-grid, .template-grid) .template-video {
  background: transparent;
}

#movo-content.motion-graphics :is(.idea-grid, .template-grid) .dance-template figcaption {
  background: #f3f3f2;
  color: #17171a;
}

#movo-content.motion-graphics .template-grid .dance-template figcaption {
  background: #fff;
}

#movo-content.motion-graphics .related-tool-card {
  display: block;
  min-width: 0;
  border-radius: 20px;
}

#movo-content.motion-graphics .related-tool-card:hover figcaption {
  text-decoration: underline;
}

#movo-content.motion-graphics .related-tool-card img.template-video {
  object-fit: cover;
}

#movo-content.motion-graphics .feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* Match the 736px-wide crop of the original 800px Product Launch GIF. */
#movo-content.motion-graphics .product-launch-crop {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#movo-content.motion-graphics .product-launch-crop img {
  transform: scale(calc(800 / 736));
}
