.animation-hero .media-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}
.animation-feature {
  width: min(100%, 20rem);
  justify-self: end;
}
.animation-feature img {
  height: auto;
}
.animation-jumps {
  border-bottom: 1px solid var(--line);
  background: var(--light);
}
.animation-jumps .media-shell {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  padding-block: .8rem;
}
.animation-jumps a {
  display: inline-block;
  padding-block: .35rem;
  font-weight: 700;
}
.animation-page [id] {
  scroll-margin-top: 1rem;
}
.animation-intro {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
}
.animation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.1rem;
  margin-top: 1.65rem;
}
.animation-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.animation-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: #fff;
  min-width: 0;
}
.animation-card p,
.animation-next p {
  color: var(--muted);
}
.animation-card h3 {
  font-size: 1.35rem;
}
.animation-card a,
.animation-next .media-actions > a {
  font-weight: 700;
}
.animation-card a:hover,
.animation-next .media-actions > a:not(.media-button):hover {
  color: #765800;
}
.animation-demo summary {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: .5rem;
  cursor: pointer;
  padding: .6rem .8rem;
  font-weight: 800;
}
.animation-demo summary:hover,
.animation-demo summary:focus-visible {
  border-color: #765800;
}
.animation-demo summary:focus-visible {
  outline: 3px solid #765800;
  outline-offset: .2rem;
}
.animation-demo[open] .animation-demo-play,
.animation-demo:not([open]) .animation-demo-close,
.animation-stage:empty {
  display: none;
}
.animation-stage {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 6 / 5;
  margin-top: 1rem;
  overflow: hidden;
  background: var(--light);
}
.animation-stage iframe {
  display: block;
  width: 300px;
  height: 250px;
  border: 0;
  transform-origin: top left;
}
.animation-source {
  display: inline-block;
  margin-top: .7rem;
}
.animation-card-image {
  padding: 0;
  overflow: hidden;
}
.animation-card-copy {
  padding: 1.25rem;
}
.animation-still {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}
.animation-still img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.animation-next img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .9rem;
}
.animation-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 56rem) {
  .animation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 48rem) {
  .animation-hero .media-grid {
    grid-template-columns: 1fr;
  }
  .animation-feature {
    justify-self: start;
  }
}
@media (max-width: 38rem) {
  .animation-grid {
    grid-template-columns: 1fr;
  }
}
