video {
  border-radius: 20px;
}

#slider-value {
  font-size: 1rem;
  font-weight: bold;
}
.teaser-video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 50vh; /* Adjust as needed */
  overflow: hidden;
  border-radius: 20px;
}

.teaser-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#teaser-video2-wrapper {
  clip-path: inset(0 50% 0 0); /* Initial split at 50% */
}

.teaser-video-wrapper video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

.teaser-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 5px;
  background-color: white;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none; /* Disable interactions */
}

/* Labels */
.teaser-label {
  position: absolute;
  font-size: 2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  transition: opacity 0.3s ease; /* Smooth fade effect */
  pointer-events: none; /* Prevent mouse interaction */
}

/* Label Positions */
.teaser-label-top {
  top: 10px;
  left: 10px; /* Top-left position */
  overflow: hidden;  /* Ensures text is clipped when width changes */
  white-space: nowrap; /* Prevents the text from wrapping onto the next line */
}

.teaser-label-bottom {
  bottom: 10px;
  right: 10px; /* Bottom-right position */
  overflow: hidden;  /* Ensures text is clipped when width changes */
  white-space: nowrap; /* Prevents the text from wrapping onto the next line */
}



/* Labels visible by default */
.teaser-label {
  opacity: 1;
}



.button {
  white-space: normal; /* allow multiline text */
  height: auto; /* adjust height to fit content */
  padding: 0.5rem 1rem; /* adjust padding to maintain spacing */
  border-width: 1px; /* adjust border width */
}


.button.is-active {
  background-color: #3273dc;
  color: #fff;
  border-color: #3273dc;
  outline: none !important;
  box-shadow: none !important;
}

.button.is-active-teaser {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.7);
  outline: none !important;
  box-shadow: none !important;
}

.button:focus, .button:active {
  outline: none !important;
  box-shadow: none !important;
}

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

.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;
  margin-left: 1rem;
}

.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;
  height: auto;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 0;
  font-size: 0;
  height: 100%;
  border-radius: 20px;
}

.results-carousel video {
  margin: 0;
  height: 100%;
}


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


.fullwidth-gray-bg {
  background-color: #f5f5f5;
}

/* ===== Mobile Responsive Fixes ===== */
@media screen and (max-width: 768px) {

  /* --- Global: wide vw containers become near-full-width --- */
  #fov-traj-img-demo,
  #saliency-demo,
  #bbox-demo {
    width: 95vw !important;
  }
  #baseline-720p-container,
  #fov-traj-video-container,
  #apps-grid {
    width: 95vw !important;
  }

  /* --- Teaser: column headers stack or shrink --- */
  .teaser-col-headers {
    gap: 0.15rem !important;
  }
  .teaser-col-headers .is-size-6 {
    font-size: 0.65rem !important;
  }

  /* --- Teaser: row labels become full-width overlay bar at top of row --- */
  .teaser-row-label {
    position: absolute !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    transform: none !important;
    padding: 0 !important;
    white-space: nowrap !important;
    z-index: 10;
    pointer-events: none;
    text-align: center;
  }
  .teaser-row-label p {
    display: block;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.15rem 0;
    font-size: 0.7rem !important;
    margin: 0;
  }

  /* --- Fov trajectory image demo: full width, 2-col → vertical stack --- */
  .fov-traj-col-headers {
    display: none !important;
  }
  .fov-traj-img-cols {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  /* Add labels back via pseudo-elements when stacked */
  .fov-traj-img-cols > div:first-child::before {
    content: "Generated image";
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  .fov-traj-img-cols > div:last-child::before {
    content: "Tokenization";
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  /* --- Saliency demo: 3-col → vertical stack --- */
  .saliency-cols {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .saliency-col-item {
    width: 100% !important;
  }
  .saliency-col-item .col-label {
    min-height: auto !important;
  }

  /* --- Bbox demo: 3-col → vertical stack --- */
  .bbox-cols {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .bbox-col-item {
    width: 100% !important;
  }
  .bbox-col-item .col-label {
    min-height: auto !important;
  }

  /* --- Baseline images: 3-col → vertical stack --- */
  .baseline-img-cols {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .baseline-img-cols > div {
    flex: none !important;
    width: 100% !important;
  }

  /* --- Fov trajectory videos: 3-col → vertical stack --- */
  .fov-traj-video-cols {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .fov-traj-video-cols > div {
    flex: none !important;
    width: 100% !important;
  }

  /* --- Baseline 720p: 3-col videos → vertical stack --- */
  .baseline-720p-cols {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .baseline-720p-cols > div {
    flex: none !important;
    width: 100% !important;
  }

  /* --- Apps grid: 3-col videos → vertical stack --- */
  .apps-video-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .apps-video-row .video-with-prompt {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* --- All round nav buttons: shrink on mobile --- */
  #baseline-img-prev, #baseline-img-next,
  #baseline-720p-prev, #baseline-720p-next,
  #fov-traj-img-prev, #fov-traj-img-next,
  #fov-traj-prev, #fov-traj-next,
  #saliency-grid-prev, #saliency-grid-next,
  #bbox-prev, #bbox-next {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  /* --- Baseline comparison column headers: smaller text --- */
  #baseline-img-container .columns.is-mobile .column .is-size-6,
  #baseline-720p-container .columns.is-mobile .column .is-size-6 {
    font-size: 0.65rem !important;
  }

  /* --- Publication title: scale down for mobile --- */
  .publication-title {
    font-size: 1.5rem !important;
  }

  /* --- Author blocks: tighter spacing --- */
  .author-block {
    margin-left: 0.4rem;
  }

  /* --- Section spacing: reduce on mobile --- */
  .section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* --- Pipeline section: remove negative margins that cause text/SVG overlap --- */
  .pipeline-text {
    margin-bottom: 0 !important;
  }

  /* --- Teaser label font: smaller on mobile --- */
  .teaser-label {
    font-size: 1rem !important;
  }

  /* --- Prompt expand hover: use tap-friendly approach on touch --- */
  .video-with-prompt .prompt-area {
    height: auto;
  }
  .video-with-prompt .video-prompt {
    -webkit-line-clamp: 3;
  }
}
