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


.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-banner {
  max-height: parent;

}

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

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

.conference-tag {
  margin: 0.2rem auto 1.2rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #4b4b4b;
  letter-spacing: 0.02em;
}

.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 a {
   color: hsl(204, 86%, 53%) !important;
}

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

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

.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;
  border: none;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
  box-shadow: none;
}

.results-carousel video {
  margin: 0;
}


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

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

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

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

/* Generation gallery */
.main-hero {
  background: #fff;
}

.teaser.is-white {
  background: #fff;
}

.abstract-section {
  background: #fff;
}

.gallery-section {
  background: #f5f5f5;
}

.generation-carousel {
  overflow: hidden;
}

.generation-carousel .item {
  padding: 0.75rem;
}

.generation-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Keep cards equal height inside carousel */
  height: 100%; 
  justify-content: flex-start;
  align-items: stretch;
}

.generation-caption {
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: #1f1f1f;
  padding: 0.2rem 0.4rem;
  /* Reserve enough vertical space for longest captions while keeping text top-aligned */
  min-height: 7.2rem; /* generous for ~4 lines at current font/line-height */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.generation-media {
  width: auto; /* keep intrinsic video size */
  max-width: 100%;
  height: auto;
  align-self: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #c8c8c8;
  box-shadow: none;
}

/* Comparison section */
.comparison-section {
  padding-top: 2.5rem;
  background: #fff;
}

.comparison-text {
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.7;
  text-align: center;
  color: #1f1f1f;
  max-width: 18rem;
  margin: 0;
}

.comparison-word {
  font-weight: 700;
}

.comparison-word--blue {
  color: #2c6bb2;
}

.comparison-word--orange {
  color: #d9842b;
}

.comparison-word--green {
  color: #5ca54c;
}

.comparison-word--red {
  color: #c9473c;
}

.comparison-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
  justify-items: center;
}

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

.comparison-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.comparison-card--text {
  align-self: stretch;
  justify-content: center;
}

.comparison-video {
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  display: block;
  box-shadow: none;
}

/* Ensure all videos render without default borders */
video {
  border: 1px solid #c8c8c8;
  border-radius: 12px;
  box-shadow: none;
}

.comparison-label {
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  color: #1f4f73;
}

@media screen and (max-width: 1024px) {
  .generation-card {
    min-height: 380px;
  }
  .generation-caption {
    font-size: 1rem;
  }
  .comparison-text {
    max-width: 100%;
  }
  .comparison-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .conference-tag {
    font-size: 1.8rem;
  }
}
 