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

/* Controlled Experiments: static setup image */
.exp-static-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Controlled Experiments: interactive box centered */
.exp-carousel {
  outline: none;
}

.exp-carousel:focus {
  box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.18);
}

/* Keep plots visually centered and not ridiculously wide */
.exp-carousel .exp-figure {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.exp-carousel .exp-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}


/* Make column widths fixed (LaTeX-like) */
.existing-table { table-layout: fixed; }
.existing-table th:first-child,
.existing-table td:first-child { width: 12%; }
.existing-table th:not(:first-child),
.existing-table td:not(:first-child) { width: 17.6%; } /* (100-12)/5 */

/* Consistent image sizing inside each cell */
.existing-pair{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.existing-pair img{
  height: 80px;     /* tweak */
  width: auto;
  max-width: 48%;
  display: block;
}

.existing-leftcell{
  text-align: center;
  vertical-align: middle;
  padding: 0;                 /* optional: tighter like LaTeX */
}

.existing-leftcell{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 82px;           /* match .existing-thumb height */
}
.retrieval-figure img{
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}


#exp-figures {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;              /* small screens -> stack */
}

/* override earlier "centered single figure" spacing inside the flex row */

#exp-figures{
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;             /* small screens -> stack */
}

/* Key fix: allow flex items to shrink (otherwise they wrap vertically) */
#exp-figures .exp-figure{
  margin: 0;
  min-width: 0;                /* IMPORTANT */
  flex: 1 1 760px;             /* single-figure wide */
  max-width: 760px;
}

/* keep images responsive inside flex items */
#exp-figures .exp-figure img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Two-figure: force 50/50 on desktop */
@media (min-width: 769px){
  #exp-figures.has-two{
    flex-wrap: nowrap;
  }
  #exp-figures.has-two .exp-figure{
    flex: 0 1 calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
  }
}

@media (min-width: 769px){
  #exp-figures.has-three{
    flex-wrap: nowrap;
  }
  #exp-figures.has-three .exp-figure{
    /* gap 是 1.25rem，共 2 个 gap -> 2.5rem */
    flex: 0 1 calc((100% - 2.5rem) / 3);
    max-width: calc((100% - 2.5rem) / 3);
  }
}

/* captions */
#exp-figures figcaption{
  line-height: 1.3;
}

/* Make images inside exp-summary consistent */
#exp-summary img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Unified takeaway boxes inside the experiments summary */
#exp-summary .exp-takeaway{
  margin-top: 0.75rem;
}
#exp-summary .exp-takeaway strong{
  margin-right: 0.5rem;
}
