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

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

/* ===== 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;
}

/* Grey boxes for media that has not been added yet.
   Once the real file exists, its own aspect ratio is used. */
video.media-placeholder,
img.media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: auto 16 / 9;
  background: #e5e5e5;
  border-radius: 8px;
}
.publication-video.media-placeholder {
  background: #e5e5e5;
}
.teaser > .container { width: 100%; }

/* ---------- Scene viewer ---------- */
.scene-viewer { max-width: 960px; margin: 0 auto; }

.sv-scenes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.sv-scene {
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  opacity: 0.6;
  transition: opacity .15s, border-color .15s;
  aspect-ratio: 3 / 2;
}
.sv-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sv-scene:hover { opacity: 0.9; }
.sv-scene.is-active { opacity: 1; border-color: #363636; }

.sv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;          /* videos are 1620x1080 */
  border-radius: 8px;
  overflow: hidden;
  background: #e5e5e5;
}
.sv-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.sv-stage video.is-visible { opacity: 1; }
.sv-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(0,0,0,.15);
  border-top-color: #363636;
  border-radius: 50%;
  animation: sv-spin .8s linear infinite;
  z-index: 2;
  display: none;
}
.sv-stage.is-loading .sv-spinner { display: block; }
@keyframes sv-spin { to { transform: rotate(360deg); } }

.sv-modes { margin: 12px 0 0 0; }
.sv-modes .button { margin-bottom: 0 !important; }
.sv-modes .button.is-active { background: #363636; color: #fff; border-color: #363636; z-index: 1; }

.sv-inputs-label {
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #7a7a7a;
  text-align: center;
}
.sv-inputs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.sv-inputs a { display: block; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #eee; }
.sv-inputs img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media screen and (max-width: 768px) {
  .sv-scenes { gap: 5px; }
  .sv-scene { border-width: 2px; border-radius: 6px; }
  .sv-inputs { grid-template-columns: repeat(4, 1fr); }
  .sv-modes .button { font-size: 0.85rem; padding-left: .8em; padding-right: .8em; }
}

/* ---------- Disabled "coming soon" button ---------- */
.button.is-dark.is-coming-soon,
.button.is-dark.is-coming-soon:hover,
.button.is-dark.is-coming-soon:focus {
  position: relative;
  background-color: #b5b5b5;
  border-color: transparent;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}
.button.is-coming-soon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 4px;
  background: #363636;
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
/* hover on desktop, tap (focus) on touch screens */
.button.is-coming-soon:hover::after,
.button.is-coming-soon:focus::after { opacity: 1; }
