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


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

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

.hf-icon {
    height: 1em;
    width: 1em;
}

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


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

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

.dataset-teaser-frame {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.dataset-teaser-video {
  display: block;
  width: 100%;
  height: auto;
}

.dataset-video-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, transform 120ms ease;
}

.dataset-video-toggle:hover,
.dataset-video-toggle:focus {
  background: rgba(0, 0, 0, 0.82);
  transform: scale(1.04);
}

.dataset-video-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.dataset-video-play {
  display: none;
}

.dataset-video-toggle.is-paused .dataset-video-pause {
  display: none;
}

.dataset-video-toggle.is-paused .dataset-video-play {
  display: inline-flex;
}

.dataset-video-lens {
  --lens-size: 382.5px;
  --lens-x: 50%;
  --lens-y: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: var(--lens-size);
  height: var(--lens-size);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate(
    calc(var(--lens-x) - (var(--lens-size) / 2)),
    calc(var(--lens-y) - (var(--lens-size) / 2))
  );
  transition: opacity 120ms ease;
}

.dataset-teaser-frame.is-zooming .dataset-video-lens {
  opacity: 1;
}

.dataset-teaser-zoom-video {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: top left;
}

@media (hover: none) {
  .dataset-video-lens {
    display: none;
  }
}


.publication-title {
}

.title-answer-strip {
  cursor: pointer;
  margin: 1rem auto 1.2rem;
  max-width: 1120px;
  outline: none;
}

.title-answer-strip:focus-visible {
  outline: 2px solid #485fc7;
  outline-offset: 4px;
}

.title-answer-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.title-answer-item {
  margin: 0;
  min-width: 0;
}

.title-answer-item img {
  aspect-ratio: 3 / 2;
  border-radius: 5px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.title-answer-verdict {
  color: #363636;
  font-family: 'Google Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.title-answer-model {
  color: #4a4a4a;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0.3rem;
}

.title-answer-reveal-hint {
  align-items: center;
  color: #6b6b6b;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 0.55rem;
}

.title-answer-reveal-hint .icon {
  height: 1em;
  width: 1em;
}

.title-answer-hint-reset {
  display: none;
}

.title-answer-strip.is-revealed .title-answer-hint-reveal {
  display: none;
}

.title-answer-strip.is-revealed .title-answer-hint-reset {
  display: inline-flex;
}

@media screen and (max-width: 768px) {
  .title-answer-strip {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .title-answer-grid {
    grid-template-columns: repeat(6, minmax(140px, 1fr));
  }
}

.publication-title-container {
  max-width: 1200px !important;
}

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

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

.benchmark-table-image {
  display: block;
  width: 80%;
  max-width: 760px;
  margin-top: 0.75rem;
  margin-left: auto;
  margin-right: auto;
}

.benchmark-intro {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 0.75rem;
  max-width: 760px;
  text-align: left;
}

.benchmark-results-summary {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem auto 0;
  max-width: 760px;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .benchmark-table-image {
    width: 94%;
  }
}

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

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

/* ===== Image comparison gallery ===== */
.comparison-metric-note {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 1rem;
  text-align: center;
}

.metric-too-high {
  color: #d7191c;
  font-weight: 700;
}

.metric-too-low {
  color: #2c7bb6;
  font-weight: 700;
}

.comparison-viewer {
  margin-top: 0.5rem;
}

.comparison-tabs {
  margin-bottom: 0.75rem;
}

.comparison-controls-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.comparison-controls-row .comparison-tabs {
  margin-bottom: 0;
}

.comparison-tabs ul {
  flex-wrap: wrap;
  justify-content: center;
}

.comparison-tabs li button {
  align-items: center;
  background: #fff;
  border: 1px solid #dbdbdb;
  color: #4a4a4a;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: center;
  line-height: 1.5;
  margin-bottom: 0;
  padding: 0.5em 1em;
  position: relative;
  text-align: center;
}

.comparison-tabs li:first-child button {
  border-bottom-left-radius: 9999px;
  border-top-left-radius: 9999px;
}

.comparison-tabs li:last-child button {
  border-bottom-right-radius: 9999px;
  border-top-right-radius: 9999px;
}

.comparison-tabs li:not(:first-child) button {
  margin-left: -1px;
}

.comparison-tabs li.is-active button {
  background-color: #363636;
  border-color: #363636;
  color: #fff;
  z-index: 1;
}

.comparison-tabs li button:hover,
.comparison-tabs li button:focus {
  border-color: #b5b5b5;
  outline: none;
  z-index: 2;
}

.comparison-tabs li.is-active button:hover,
.comparison-tabs li.is-active button:focus {
  border-color: #363636;
}

.comparison-reference-grid,
.comparison-model-grid {
  display: grid;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

.comparison-reference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
  max-width: 720px;
}

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

.comparison-figure {
  margin: 0;
  text-align: center;
}

.comparison-figure img {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.comparison-figure figcaption {
  color: #363636;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.45rem;
}

.comparison-metrics {
  color: #6b6b6b;
  font-size: 0.82rem;
  line-height: 1.25;
  margin-top: 0.2rem;
}

@media screen and (max-width: 768px) {
  .comparison-reference-grid,
  .comparison-model-grid {
    gap: 1rem;
    grid-template-columns: 1fr;
  }
}

/* ===== Before/After comparison slider (adapted from LinPrim) ===== */
.bal-container-small {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 6px;
}

.bal-wrapper {
  position: relative;
  width: 100%;
}

.bal-after {
  display: block;
  width: 100%;
}

.bal-after video,
.bal-after img {
  display: block;
  width: 100%;
  height: auto;
}

.bal-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
}

.bal-before-inset {
  position: relative;
}

.bal-before-inset video,
.bal-before-inset img {
  display: block;
  width: 100%;
  height: auto;
}

.bal-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bal-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.handle-left-arrow,
.handle-right-arrow {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
}

.handle-left-arrow {
  left: 50%;
  transform: translate(-200%, -50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #555;
}

.handle-right-arrow {
  left: 50%;
  transform: translate(100%, -50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #555;
}

.beforeLabel,
.afterLabel {
  position: absolute;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 13px;
  border-radius: 4px;
  top: 12px;
  pointer-events: none;
  white-space: nowrap;
}

.bal-beforePosition {
  left: 10px;
}

.bal-afterPosition {
  right: 10px;
}
