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

/* Enlarge display-mode MathJax equations ($$...$$ / \[...\]) */
mjx-container[display="true"] {
  font-size: 1.6em !important;
}

/* Callout box for inline notes / tips */
.callout {
  background: #f3f7fb;
  border-left: 4px solid #3273dc;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
}
.callout-title {
  font-weight: 700;
  margin-right: 0.4rem;
}
.callout.tip   { background: #f1faf5; border-left-color: #48c774; }
.callout.warn  { background: #fffaf0; border-left-color: #ffdd57; }
.callout.note  { background: #fdf4f4; border-left-color: #f14668; }


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

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

.dnerf {
  font-variant: small-caps;
}


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

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


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.8rem) !important;
    line-height: 1.25;
}

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

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

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

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

.author-block {
  display: inline-block;
}

.author-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 0.4rem;
  column-gap: 0.8rem;
  justify-items: center;
  max-width: 980px;
  margin: 0.8rem auto 0.4rem;
  font-size: 1.38rem;
}

.author-grid .author-block {
  display: block;
}

@media (max-width: 768px) {
  .author-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 1rem;
  }
}

.affiliation-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.3rem;
  column-gap: 1.4rem;
  max-width: 1100px;
  margin: 0.7rem auto 0;
  font-size: 1.05rem;
  color: #555;
}

.affiliation-item {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .affiliation-list {
    column-gap: 0.9rem;
    font-size: 0.95rem;
  }
}

.teaser-figures {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5%;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

/* Tighten the gap between hero (paper/code buttons) and teaser figures */
section.hero .hero-body {
  padding-bottom: 1.5rem;
}
section.section {
  padding-top: 0.5rem;
}

.teaser-figure {
  margin: 0;
}

.teaser-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.teaser-figure figcaption {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.4rem;
  color: #555;
}

.teaser-rl { flex: 0 0 49%; }
.teaser-image { flex: 0 0 43%; }

/* Method row uses Bulma .columns; just constrain width and tune image/caption */
.content .method-row,
.method-row {
  max-width: 900px;
  margin: 1.2rem auto 1.5rem !important;
}

/* Vertical stack for experiment figures */
.content .exp-stack,
.exp-stack {
  max-width: 1100px;
  margin: 1.2rem auto 1.8rem !important;
}

/* exp-narrow: keep block (caption) at full width, but cap the image */
.content .exp-stack.exp-narrow .figure-img,
.exp-stack.exp-narrow .figure-img {
  max-width: 900px !important;
  margin-left: auto;
  margin-right: auto;
}

.content .exp-stack .exp-item,
.exp-stack .exp-item {
  margin: 0 0 1.5rem 0 !important;
  text-align: center;
}

.content .exp-stack .exp-item:last-child,
.exp-stack .exp-item:last-child {
  margin-bottom: 0 !important;
}

/* Shared figure styles for img + caption */
.content img.figure-img,
img.figure-img {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 4px;
}

.content .figure-caption,
.figure-caption {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.6rem;
  color: #555;
  font-style: normal;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .teaser-figures {
    flex-direction: column;
    gap: 1.2rem;
  }
  .teaser-rl, .teaser-image { flex: 1 1 auto; width: 100%; }
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.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%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}
