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

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

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

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

.author-block-small {
  font-size: smaller;
}

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


.bibtex {
  background: #f5f5f5;
  border-radius: 10px;   /* Rounded corners */
  padding: 10px;
  font-family: monospace;
  overflow-x: auto;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.copy-btn svg {
  transition: opacity 0.2s ease-in-out;
}


.affil-logos {
  display: flex;
  justify-content: center;
  gap: 3em;
  align-items: flex-start;
}

.affil-item {
  position: relative;
  min-width: 180px;
}

.affil-item img {
  max-height: 50px;
  height: auto;
}

.affil-num {
  position: absolute;
  top: -0.6em;        /* controls vertical height */
  left: -0.6em;       /* controls horizontal offset */
  font-size: 0.8em;
  font-weight: 500;
}







.bal-container-small {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1280;  /* or 3 / 2 */
  height: auto;
  cursor: grab;
  overflow: hidden;
  border-radius: 10px;
}

.bal-container-big {
  position: relative;
  width: 100%;
  height: 600px;
  cursor: grab;
  overflow: hidden;
}

.bal-after {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bal-before {
  display: block;
  position: absolute;
  top: 0;
  /* right: 0; */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  overflow: hidden;
}

.bal-before-inset {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
}

.bal-after img,
.bal-before img {
  object-fit: contain;    /* prevents cropping */
  position: absolute;
  width: 100%;
  height: 100%;
  object-position: center center;
  top: 0;
  left: 0;
  user-select: none;
}

.bal-beforePosition {
  background: #121212;
  color: #fff;
  left: 0;
  pointer-events: none;
  border-radius: 0.2rem;
  padding: 2px 10px;
}

.bal-afterPosition {
  background: #121212;
  color: #fff;
  right: 0;
  pointer-events: none;
  border-radius: 0.2rem;
  padding: 2px 10px;
}

.beforeLabel {
  position: absolute;
  bottom: 0;
  margin: 1rem;
  font-size: 1em;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.afterLabel {
  position: absolute;
  bottom: 0;
  margin: 1rem;
  font-size: 1em;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.bal-handle {
  height: 41px;
  width: 41px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -20px;
  margin-top: -21px;
  border: 2px solid #fff;
  border-radius: 1000px;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 0 10px rgb(12, 12, 12);
}

.handle-left-arrow,
.handle-right-arrow {
  width: 0;
  height: 0;
  border: 6px inset transparent;
  position: absolute;
  top: 50%;
  margin-top: -6px;
}

.handle-left-arrow {
  border-right: 6px solid #fff;
  left: 50%;
  margin-left: -17px;
}

.handle-right-arrow {
  border-left: 6px solid #fff;
  right: 50%;
  margin-right: -17px;
}

.bal-handle::before {
  bottom: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgb(12, 12, 12);
}

.bal-handle::after {
  top: 50%;
  margin-top: 20.5px;
  box-shadow: 0 0 5px rgb(12, 12, 12);
}

.bal-handle::before,
.bal-handle::after {
  content: " ";
  display: block;
  width: 2px;
  background: #fff;
  height: 9999px;
  position: absolute;
  left: 50%;
  margin-left: -1.5px;
}









.video-label-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.video-label-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.video-label {
  position: absolute;
  top: 0px;        /* move to top */
  bottom: auto;     /* disable bottom position */
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  padding: 5px 5px;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
  font-family: 'Noto Sans', sans-serif;
}

.label-left {
  left: 15%;
  transform: translateX(-25%);
}

.label-center {
  left: 50%;
  transform: translateX(-50%);
}

.label-right {
  left: 85%;
  transform: translateX(-75%);
}












/* Video comparison window */
.video-compare-container {
  width: 75%;
  margin: 0 auto;
  aspect-ratio: 978 / 644;  /* matches video resolution (~1.52) */
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Video elements only inside video slider */
.video-compare-container .bal-after video,
.video-compare-container .bal-before video {
  object-fit: contain;
  position: absolute;
  width: 100%;
  height: 100%;
  object-position: center center;
  top: 0;
  left: 0;
  user-select: none;
  pointer-events: none;
}

/* Video labels */
.video-compare-container .videoBeforeLabel {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  transform: none;
  margin: 0;
  font-size: 1em;
  z-index: 30;
  user-select: none;
  transition: opacity 0s ease;
}

.video-compare-container .videoAfterLabel {
  position: absolute;
  top: 12px;
  left: auto;
  right: 12px;
  bottom: auto;
  transform: none;
  margin: 0;
  font-size: 1em;
  z-index: 30;
  user-select: none;
  transition: opacity 0s ease;
}

/* Keep normal image comparison labels at top corners */
.beforeLabel,
.afterLabel {
  position: absolute;
  top: 12px;
  bottom: auto;
  margin: 0;
  font-size: 1em;
  user-select: none;
  z-index: 30;
}

.beforeLabel {
  left: 12px;
}

.afterLabel {
  right: 12px;
}







.video-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 25px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: #363636;
  border: 1.5px solid #b5b5b5;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.video-toggle-btn::before {
  content: "\25B6\FE0E";   /* play triangle (text style) */
  font-size: 11px;
}

.video-toggle-btn:hover {
  background: #eef4ff;
  border-color: #3273dc;
  color: #3273dc;
}
/* Two videos per row in "Video Comparisons with Previous Methods" */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.video-grid .video-cell {
  min-width: 0;
  text-align: center;
}

.video-grid .video-compare-container {
  width: 100%;
}

/* Odd last video: center it on its own row */
.video-grid .video-cell:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 0.75rem);
  justify-self: center;
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid .video-cell:last-child:nth-child(odd) { width: 100%; }
}

/* Keep carousel arrows inside the video window */
.slider-navigation-previous {
  left: 12px !important;
}

.slider-navigation-next {
  right: 12px !important;
  left: auto !important;
}
