body {
  color: #242424;
  font-family: "Noto Sans", sans-serif;
}

.publication-header .hero-body {
  padding-bottom: 2rem;
}

.publication-header .container.is-max-desktop {
  max-width: 70rem;
}

.publication-title,
.publication-authors,
.publication-affiliations,
.teaser {
  font-family: "Google Sans", sans-serif;
}

.publication-title {
  font-size: 2.75rem !important;
  line-height: 1.12;
}

.project-name {
  white-space: nowrap;
}

.author-block {
  display: inline-block;
  margin: 0 0.15rem;
}

.publication-affiliations {
  color: #555;
  margin-top: 0.75rem;
}

.publication-authors a {
  color: hsl(204, 86%, 40%);
}

.publication-authors a:hover {
  text-decoration: underline;
}

.publication-links {
  margin-top: 1.25rem;
}

.link-block a {
  margin: 0.25rem;
}

.coming-soon {
  margin: 0.25rem;
  opacity: 0.72 !important;
  pointer-events: none;
}

.coming-soon small {
  font-size: 0.65em;
  margin-left: 0.35rem;
}

.teaser .hero-body {
  padding-top: 0;
}

.publication-banner img {
  border-radius: 12px;
  width: 100%;
}

.publication-banner {
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.teaser .subtitle {
  margin: 1.5rem auto 0;
  max-width: 52rem;
  line-height: 1.5;
}

.video-section {
  padding-top: 1rem;
}

.youtube-embed {
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  max-width: 56rem;
}

.youtube-embed iframe {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(10, 10, 10, 0.08);
  height: 100%;
  width: 100%;
}

.method-section,
.experiments-section {
  background: #f7f8fa;
}

.method-intro,
.section-lead {
  margin: 0 auto 3rem;
  max-width: 52rem;
}

.feature {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 3fr) minmax(15rem, 2fr);
  margin: 4rem 0;
}

.feature-reverse .image {
  order: 2;
}

.feature img,
.results-grid img,
.video-grid video {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(10, 10, 10, 0.08);
  width: 100%;
}

.feature-overall .image {
  /* 0.90 / 0.97, matching the relative widths used in the paper. */
  width: 92.8%;
}

.feature-encoder .image {
  width: 100%;
}

.feature-encoder {
  /* The image is on the second column; give it about 1.4x the previous width. */
  grid-template-columns: minmax(15rem, 2.15fr) minmax(0, 2.85fr);
}

.feature-override .image {
  /* 0.655 / 0.97, matching the relative widths used in the paper. */
  width: 67.5%;
}

.feature .content p {
  line-height: 1.7;
}

.annotation-section {
  margin: 5rem auto 1rem;
  max-width: 52rem;
}

.annotation-section .content {
  margin: 0 auto 1.5rem;
  max-width: 46rem;
}

.annotation-section video {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(10, 10, 10, 0.08);
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 70%;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.task-video-grid {
  grid-template-columns: repeat(3, 1fr);
}

.video-grid figure,
.results-grid figure {
  margin: 0;
}

.video-grid video {
  display: block;
}

.video-grid figcaption,
.results-grid figcaption {
  font-family: "Google Sans", sans-serif;
  font-weight: 600;
  padding-top: 0.65rem;
  text-align: center;
}

.experiment-heading {
  margin-top: 3rem;
}

.results-grid {
  display: grid;
  gap: 3rem;
}

.results-summary {
  margin: 0 auto 3rem;
  max-width: 52rem;
}

.results-grid figure {
  text-align: center;
}

.results-grid img {
  height: auto;
  max-height: 50rem;
  object-fit: contain;
  width: auto;
}

.bibtex-section {
  background: #f7f8fa;
}

.bibtex-wrap {
  position: relative;
}

.bibtex-wrap pre {
  overflow-x: auto;
  padding: 1.5rem;
}

#copy-bibtex {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
}

.footer {
  padding: 2.5rem 1.5rem;
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2rem !important;
  }

  .feature {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
  }

  .feature-reverse .image {
    order: 0;
  }

  .feature-overall .image,
  .feature-encoder .image,
  .feature-override .image {
    max-width: 100%;
  }

  .video-grid,
  .task-video-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .bibtex-wrap pre {
    padding-top: 3.5rem;
  }
}
