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

/* Avoid rare horizontal scrollbar from full-bleed hero band (100vw vs scrollbar) */
html {
  overflow-x: clip;
}

/* Viewport-wide light band behind hero figure + TL;DR (not a card—full screen width at any zoom) */
.hero-highlight-bleed {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: rgb(251, 252, 253);
  padding: 1.5rem 0 2rem;
}

/* Hero TL;DR — vertical rhythm vs figure above and abstract section below */
.hero-tldr-wrap {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

/* Hero TL;DR — plain text, no card */
.tldr-box {
  margin: 0 auto;
  max-width: 100%;
}

.tldr-box-text {
  font-size: 1.35em;
  margin: 0;
  line-height: 1.5;
  color: #363636;
}

.tldr-label {
  font-weight: 700;
}

/* Method: figure flush; caption carries spacing above */
.method-figure-wrap {
  margin-bottom: 0 !important;
}

.method-figure-wrap img {
  display: block;
  margin-bottom: 0;
}

.content .method-overview-caption {
  margin-top: 1rem;
}

/* Generated 3D Worlds: three preview videos, full row width */
.world-trio {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.world-trio__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a1a;
}

.world-trio__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

.world-trio__caption {
  margin-top: 0.6rem;
}

/* Soft panel — hero figure + videos only */
.hero-fig-panel {
  background: rgb(243, 248, 252);
  border: none;
  border-radius: 16px;
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(30, 60, 100, 0.08);
}

/* Abstract: semantic wrapper only, no card */
.abstract-panel {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Hero: trio directly under Fig.1, same column width as figure */
.world-trio--hero {
  margin-top: 0.45rem;
  margin-bottom: 0;
}

/* Align video row with full-width fig; equal tile size (Bulma padding would make
   center columns narrower: they had padding on both sides, edge columns only one). */
.hero-fig-panel .world-trio--hero.columns.is-variable {
  --hero-tile-gap: calc(2 * var(--columnGap, 0.5rem));
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  column-gap: var(--hero-tile-gap);
  row-gap: var(--hero-tile-gap);
}

.hero-fig-panel .world-trio--hero.columns.is-variable > .column {
  padding: 0 !important;
  min-width: 0 !important;
}

@media screen and (min-width: 769px) {
  .hero-fig-panel .world-trio--hero.columns.is-variable > .column {
    flex: 1 1 0 !important;
    width: auto !important;
  }
}

@media screen and (max-width: 768px) {
  .hero-fig-panel .world-trio--hero.columns.is-variable > .column {
    flex: none !important;
    width: 100% !important;
  }
}

.world-trio--hero .world-trio__caption {
  font-size: 0.85rem;
}

/* Match hero background; avoid dark #1a1a1a “seams” at corners / between cells */
.world-trio--hero .world-trio__media {
  background: #fff;
  box-shadow: none;
  border-radius: 0;
}

/* Slight overscale so video fully covers the square (hides subpixel gaps at rounded clip) */
.world-trio--hero .world-trio__media video {
  transform: scale(1.03);
  transform-origin: center center;
  backface-visibility: hidden;
}

.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 a {
   color: hsl(204, 86%, 53%) !important;
}

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

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

.publication-banner img {
}

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

/* Center all images and videos (excluded inside carousels) */
img, video {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Flex columns default min-width:auto; wide in-flow tracks can blow up layout */
section.section .columns > .column.is-full-width {
  min-width: 0;
}

/* Carousel: one visible slide = 100% of container; track width = N × 100% */
.video-carousel {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

/* Panel carousel: fixed column + row captions outside the sliding track */
.column.is-full-width:has(> .qual-panel-widget) > .title.is-3 {
  margin-bottom: 3.0rem;
}

.qual-panel-widget {
  --qual-panel-gutter: 2.00rem; /* room for -90° text (slightly tighter rail) */
  --qual-panel-chrome-gap: 0.4rem; /* vertical: Camera titles → image block */
  --qual-panel-row-rail: 0.125rem; /* horizontal: row titles → images (~2px, tight) */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.qual-panel-top-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin-bottom: var(--qual-panel-chrome-gap);
  box-sizing: border-box;
}

.qual-panel-corner-spacer {
  width: calc(var(--qual-panel-gutter) + var(--qual-panel-row-rail));
  flex-shrink: 0;
}

.qual-panel-column-headings {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.75rem;
  padding: 0 2px;
  box-sizing: border-box;
}

.qual-panel-column-headings__label {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #363636;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  line-height: 1.25;
  min-height: 1.25em;
}

.qual-panel-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow: visible;
}

.qual-panel-row-labels {
  flex: 0 0 auto;
  width: var(--qual-panel-gutter);
  padding: 0.15rem var(--qual-panel-row-rail) 0.15rem 0;
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem; /* must match #qualPanelCarousel .qual-panel__rows gap */
  align-self: flex-start;
  overflow: visible;
}

.qual-panel-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  overflow: visible;
  box-sizing: border-box;
}

.qual-panel-row-label__text {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #363636;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: center center;
}

/* Avoid clipping rotated row captions (flex/min-width stacking) */
.column.is-full-width:has(.qual-panel-widget) {
  overflow: visible;
}

.qual-panel-body .video-carousel.carousel--panel {
  flex: 1 1 0;
  min-width: 0;
  margin-left: 0;
}

.video-carousel.carousel--panel {
  max-width: 100%;
  width: 100%;
}

#qualPanelCarousel:focus:not(:focus-visible) {
  outline: none;
}

#qualPanelCarousel .carousel-slide {
  aspect-ratio: auto;
}

#qualPanelCarousel .qual-panel {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

#qualPanelCarousel .qual-panel__rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

#qualPanelCarousel .qual-panel__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

/* Cell is a neutral wrapper; rounding applies only to each <img> (the bitmap). */
#qualPanelCarousel .qual-panel__cell {
  width: 100%;
  background: transparent;
}

#qualPanelCarousel .qual-panel__img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 12px;
}

#qualPanelCarousel .carousel-caption {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0.7rem;
  line-height: 1.3;
  color: #333;
}

@media screen and (max-width: 768px) {
  .qual-panel-widget {
    --qual-panel-gutter: 3.5rem;
    --qual-panel-chrome-gap: 0.35rem;
    --qual-panel-row-rail: 0.125rem;
  }

  #qualPanelCarousel .qual-panel__rows,
  .qual-panel-row-labels {
    gap: 0.4rem;
  }

  #qualPanelCarousel .qual-panel__row {
    column-gap: 0.4rem;
  }

  .qual-panel-column-headings {
    column-gap: 0.4rem;
  }

  .qual-panel-column-headings__label {
    font-size: 0.8rem;
  }

  .qual-panel-row-label__text {
    font-size: 0.68rem;
  }

  .qual-panel-top-row {
    gap: 0.4rem;
  }

  #qualPanelCarousel .carousel-caption {
    font-size: 1.12rem;
  }
}

/* Triple-wide video carousel: 3 clips visible, full content width */
.video-carousel.video-carousel--triple {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* Clip wide track so flex column min-width:auto does not grow to track width (infinite layout) */
.video-carousel.video-carousel--triple .carousel-viewport--triple {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.video-carousel.video-carousel--triple .carousel-viewport--triple .carousel-track {
  --triple-gap: 14px;
  gap: 0;
  width: auto; /* set in JS */
  box-sizing: border-box;
}

/* Margin spacing avoids flex-gap compositing artifacts; width math matches JS (see triple carousel script). */
.video-carousel.video-carousel--triple .carousel-slide:not(:last-child) {
  margin-right: var(--triple-gap);
}

.video-carousel.video-carousel--triple .carousel-slide {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.video-carousel.video-carousel--triple .triple-slide-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.video-carousel.video-carousel--triple .triple-slide-media video {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.02);
  object-fit: cover;
  display: block;
  margin: 0;
  cursor: default;
  border-radius: 0;
}

.video-carousel.video-carousel--triple .triple-slide-caption {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.video-carousel.carousel-arrows-visible .carousel-arrow:disabled {
  opacity: 0.4;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: calc(var(--carousel-slides, 1) * 100%);
}

.carousel-slide {
  flex: 0 0 calc(100% / var(--carousel-slides, 1));
  width: calc(100% / var(--carousel-slides, 1));
  position: relative;
  min-width: 0;
}

/* Reset global img/video centering inside carousel */
.carousel-slide video,
.carousel-slide img.carousel-img {
  margin: 0;
}

/* Video slide: fixed 1:1 aspect, video fills and crops */
.carousel-slide:has(video) {
  aspect-ratio: 1 / 1;
}

.carousel-slide:has(video) video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  cursor: pointer;
}

/* Triple carousel: caption sits below video; undo single-slide :has(video) rules */
.video-carousel.video-carousel--triple .carousel-slide:has(video) {
  aspect-ratio: auto;
}

.carousel-slide .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.carousel-slide .play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.carousel-slide .play-overlay svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}

.carousel-slide .play-overlay:hover svg {
  transform: scale(1.1);
}

.carousel-caption {
  text-align: center;
  margin-top: 0.6rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #444;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

/* Shown while pointer is over carousel (JS) or keyboard focus inside */
.video-carousel.carousel-arrows-visible .carousel-arrow,
.video-carousel:focus-within .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* Touch / no hover: keep arrows usable */
@media (hover: none) {
  .video-carousel .carousel-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-arrow {
    transition-duration: 0.01ms;
  }
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.carousel-arrow.prev {
  left: 12px;
}

.carousel-arrow.next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: #4a4a4a;
  width: 12px;
  height: 12px;
}

/* ── Ablation carousel widget ── */

.abl-carousel-widget {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.abl-col-headings {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  padding: 0 2px;
}

.abl-col-heading {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #363636;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  line-height: 1.25;
}

.abl-carousel-widget .video-carousel.carousel--panel {
  max-width: 100%;
  width: 100%;
  flex: none;
}

#ablNCarousel:focus:not(:focus-visible),
#ablImgCarousel:focus:not(:focus-visible) {
  outline: none;
}

#ablNCarousel .carousel-slide,
#ablImgCarousel .carousel-slide {
  aspect-ratio: auto;
}

.abl-grid {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.abl-grid__cell {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

#ablNCarousel .carousel-slide .abl-grid__cell video {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  border-radius: 8px;
  cursor: default;
}

#ablImgCarousel .carousel-slide .abl-grid__cell img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  border-radius: 8px;
}

#ablNCarousel .carousel-caption,
#ablImgCarousel .carousel-caption {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0.7rem;
  line-height: 1.3;
  color: #333;
}

@media screen and (max-width: 768px) {
  .abl-col-heading {
    font-size: 0.72rem;
  }

  .abl-grid {
    gap: 0.3rem;
  }

  .abl-col-headings {
    gap: 0.3rem;
  }

  #ablNCarousel .carousel-caption,
  #ablImgCarousel .carousel-caption {
    font-size: 1.12rem;
  }
}

/* ── LDI panel carousel ── */

#ldiPanelCarousel:focus:not(:focus-visible) {
  outline: none;
}

#ldiPanelCarousel .carousel-slide {
  aspect-ratio: auto;
}

#ldiPanelCarousel .qual-panel {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

#ldiPanelCarousel .qual-panel__rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

#ldiPanelCarousel .qual-panel__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

#ldiPanelCarousel .qual-panel__cell {
  width: 100%;
  background: transparent;
}

#ldiPanelCarousel .qual-panel__img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 12px;
}

#ldiPanelCarousel .carousel-caption {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0.7rem;
  line-height: 1.3;
  color: #333;
}

/* ── Depth static panel ── */

.qual-panel-body #depthStaticPanel {
  flex: 1 1 0;
  min-width: 0;
}

#depthStaticPanel {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

#depthPanelRows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

#depthStaticPanel .qual-panel__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

#depthStaticPanel .qual-panel__cell {
  width: 100%;
  background: transparent;
}

#depthStaticPanel .qual-panel__img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 12px;
}

@media screen and (max-width: 768px) {
  #ldiPanelCarousel .qual-panel__rows,
  #depthPanelRows {
    gap: 0.4rem;
  }

  #ldiPanelCarousel .qual-panel__row,
  #depthStaticPanel .qual-panel__row {
    column-gap: 0.4rem;
  }
}
