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

.section-bg-darker {
  background-color: #f0f0f0;
}


.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-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;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.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-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

.optical-diagram-wrapper {
  margin: 1rem 0;
}
.optical-diagram-container {
  max-width: 100%;
  margin: 0 auto;
}
#optical-diagram-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fafafa;
}
.optical-slider-container {
  position: relative;
  margin-top: 0.5rem;
  padding: 0 0.5rem;
}
.optical-slider-ticks {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 0.35rem;
}
.optical-slider-ticks .tick {
  width: 2px;
  height: 14px;
  background: #3273dc;
  border-radius: 1px;
  opacity: 0.7;
}
.optical-slider-container input[type="range"] {
  position: relative;
  z-index: 1;
}
.optical-wavelength-label {
  display: none;
}

.results-container {
  position: relative;
  min-height: 200px;
}
.results-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(250, 250, 250, 0.95);
  border-radius: 8px;
  z-index: 10;
  transition: opacity 0.3s ease;
}
.results-loading.results-loading-done {
  pointer-events: none;
  opacity: 0;
}
.results-loading-bar {
  width: 80%;
  max-width: 320px;
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.results-loading-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #3273dc, #209cee);
  border-radius: 3px;
  animation: results-loading-move 1.2s ease-in-out infinite;
}
@keyframes results-loading-move {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.results-loading-text {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.results-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.results-panel {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 0.75rem;
  background: #fafafa;
}
.results-panel-label {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #363636;
}
.results-panel-measurements { flex: 1 1 30%; min-width: 160px; }
.results-panel-rgb          { flex: 1 1 30%; min-width: 160px; }
.results-panel-spectrum    { flex: 0 0 28%; min-width: 200px; }

.results-measurements-carousel {
  overflow: hidden;
}
.results-measurements-carousel .item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
}
.results-measurements-carousel .item img {
  width: 100%;
  height: auto;
  display: block;
}

.results-panel-measurements .results-measurements-carousel .item img,
.results-rgb-wrap .results-rgb-image {
  width: 100%;
  height: auto;
  max-height: 280px;
  min-height: 200px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.results-rgb-psnr {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.results-rgb-wrap {
  position: relative;
  width: 100%;
  min-height: 200px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  cursor: crosshair;
  background: #eee;
}
.results-rgb-image {
  vertical-align: top;
}

.spectrum-plot-wrap {
  position: relative;
  min-height: 200px;
}
.spectrum-plot {
  width: 100%;
  min-width: 200px;
  height: 220px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
}
.spectrum-plot-error {
  margin: 0;
  width: 100%;
  min-height: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
}
.spectrum-plot .svg-container {
  border-radius: 6px;
}
.spectrum-plot-legend {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.spectrum-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.spectrum-legend-swatch {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 2px;
  flex-shrink: 0;
}
.spectrum-legend-sep {
  opacity: 0.6;
}
.spectrum-plot-hint {
  margin-top: 0;
}

.results-intro-mobile {
  display: none;
}

@media (max-width: 768px) {
  .results-intro-desktop {
    display: none !important;
  }
  .results-intro-mobile {
    display: block !important;
  }
  .results-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .results-panel-measurements,
  .results-panel-rgb {
    flex: 1 1 45%;
    min-width: 160px;
  }
  .results-panel-spectrum {
    display: none;
  }
}
