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: 'Noto 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: 'Noto Sans', sans-serif;
}

.publication-authors {
    font-family: 'Noto 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;
   /* color: #8000FF; */
}

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

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

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

/* ===== Layout polish: spacing, boundaries, visual hierarchy ===== */

/* Section spacing */
.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section:first-of-type {
  padding-top: 2rem;
}

/* Hero and teaser */
.hero .hero-body {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

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

.teaser .subtitle {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Method section subsections */
.section .title.is-4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.section .title.is-4:first-of-type {
  margin-top: 1.5rem;
}

.section .title.is-3 {
  margin-bottom: 0.5rem;
}

.section p {
  margin-bottom: 1rem;
}

/* Results section */
.results-section .title.is-4 {
  margin-top: 0.5rem;
}

.results-section .title.is-5 {
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.result-group {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  margin-top: 2rem;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.result-group:first-of-type {
  margin-top: 1.5rem;
}

.result-group + .result-group {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #ccc;
}

.result-group .result-label {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.result-group .result-label:first-child {
  margin-top: 0;
}

.result-group .columns {
  margin: 0;
  gap: 0.35rem;
}

.result-group .column {
  padding: 0.2rem !important;
}

.result-group video {
  background: #fff;
}

/* BibTeX section */
#BibTeX {
  background: #fafafa;
  border-top: 1px solid #eee;
}

#BibTeX pre {
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
}

/* Footer */
.footer {
  border-top: 1px solid #eee;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ===== VGC: side-by-side comparison rows ===== */

.results-section .results-note {
  max-width: 900px;
  margin: 0 auto 0.5rem;
  text-align: center;
}

.results-section .title.is-4 {
  margin-top: 3rem;
}

.compare-row .compare-caption {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.compare-row .compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* A label that wraps must not push its video below the neighbouring one. */
.compare-row .compare-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.compare-row .method-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.25rem;
}

.compare-row video {
  display: block;
  width: 100%;
  aspect-ratio: 26 / 15;
  object-fit: cover;
  border-radius: 6px;
  background: #e8e8e8;
}

/* Two comparison rows side by side; one per line on narrow screens. */
[data-results] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media screen and (max-width: 768px) {
  [data-results] {
    grid-template-columns: minmax(0, 1fr);
  }
}

[data-results] .compare-row,
[data-results] .compare-row + .compare-row {
  margin-top: 0;
  padding: 1rem 0.75rem;
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

/* Captions of different length must not push one card's videos out of line. */
[data-results] .compare-row .compare-caption {
  flex: 1;
  font-size: 0.9rem;
}

[data-results] .compare-row .compare-grid {
  gap: 0.5rem;
}

/* An odd last row is centered instead of hanging in the left column. */
@media screen and (min-width: 769px) {
  [data-results] .compare-row:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.75rem);
  }
}

/* VG-Pairs: three pairs in one row, each with the real clip above the distorted one. */
@media screen and (min-width: 769px) {
  [data-results="vgpairs"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  [data-results="vgpairs"] .compare-row .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-results="vgpairs"] .compare-row:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

.method-figure {
  display: block;
  width: 100%;
  margin: 0.5rem 0 1.5rem;
}

/* Keep the paper title on one line wherever the viewport is wide enough. */
@media screen and (min-width: 1024px) {
  .publication-title {
    white-space: nowrap;
  }
}

/* The teaser column matches the Abstract column: drop the hero's extra side padding. */
@media screen and (min-width: 769px) {
  .teaser .hero-body {
    padding-left: 0;
    padding-right: 0;
  }
}
