body {
  font-family: 'Noto Sans', sans-serif;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a,
.link-block span.button {
  margin-top: 5px;
  margin-bottom: 5px;
}

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

.teaser {
  font-family: 'Google Sans', sans-serif;
}

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

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

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

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

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 20px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.teaser-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.paper-figure {
  width: 100%;
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.figure-caption {
  margin-top: 0.85rem;
  color: #666;
}

.project-meta-links,
.footer-links {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: #5c6670;
}

.project-meta-links a,
.footer-links a {
  color: #1f5fbf;
}

.project-meta-links a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.meta-divider {
  margin: 0 0.45rem;
  color: #9aa3ab;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.visual-highlights {
  display: grid;
  gap: 1.75rem;
}

.visual-hero {
  margin: 0;
}

.visual-hero .paper-figure {
  padding: 0;
  width: 100%;
}

.visual-grid-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Last two highlights grow to fill the full page width as a 2-up row,
   shown at natural aspect (no crop) so the composite frames read fully. */
.visual-grid-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-highlights .visual-grid-duo .paper-figure {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
  padding: 0;
}

@media screen and (max-width: 640px) {
  .visual-grid-duo {
    grid-template-columns: 1fr;
  }
  /* Prevent hero title + button rows from forcing horizontal scroll on phones. */
  .publication-title {
    font-size: 1.9rem !important;
    line-height: 1.15;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .publication-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }
  .publication-links .link-block { margin: 0; }
  .project-meta-links { flex-wrap: wrap; }
  html, body { overflow-x: hidden; max-width: 100%; }
  /* Bulma .columns negative margins + wide children force page width on phones. */
  .columns { margin-left: 0 !important; margin-right: 0 !important; }
  .container, .container.is-max-desktop { max-width: 100% !important; }
  .hero-body { padding-left: 1rem !important; padding-right: 1rem !important; }
  /* Long unbreakable content (BibTeX) must wrap, not force width. */
  #bibtex pre { white-space: pre-wrap; word-break: break-word; }
  /* Wide tables must scroll inside their own container, never force page width. */
  #xrai table.wide { min-width: 0 !important; }
  .aperture-perception .ap-scroll { max-width: 100%; }
  .aperture-perception { padding-left: 0.6rem; padding-right: 0.6rem; }
  /* Fixed layout so matrix cells wrap instead of setting a min-content page-width floor. */
  .aperture-perception table, #xrai table { table-layout: fixed; width: 100%; }
  .aperture-perception th, .aperture-perception td { overflow-wrap: anywhere; word-break: break-word; }
  #xrai .ap-code { max-width: 100%; }
}

.visual-card {
  margin: 0;
}

/* Uniform tiles: every device-capture crops to the same 4:3 frame,
   so mixed source aspect ratios (portrait + landscape) still align. */
.visual-card .paper-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  padding: 0;
  background: #0d0d10;
}

.visual-card .figure-caption {
  padding: 0 0.15rem;
}


.figure-stack {
  margin-top: 2rem;
}

.is-disabled {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.content p {
  font-size: 1.02rem;
}

@media screen and (min-width: 901px) and (max-width: 1100px) {
  .visual-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .visual-grid-secondary {
    grid-template-columns: 1fr;
  }
}
