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

.rounded{
  border-radius: 15px; 
  overflow: hidden; 
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

a.link-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.dnerf {
  font-variant: small-caps;
}


section.hero:not(.teaser) .hero-body {
  padding-bottom: 1rem;
}

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

.hero-title-with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-title-with-logo .dage-logo {
  height: 8em;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.publication-title-two-line {
    display: inline-block;
    margin-bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.publication-title-two-line .title-line-main {
    color: #B51700;
    font-weight: bold;
    font-size: 1em;
    line-height: 1.3;
}

.publication-title-two-line .title-line-sub {
    color: #2c3e50;
    font-weight: bold;
    font-size: 0.95em;
    line-height: 1.4;
}

.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;
  min-height: 400px;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-carousel video {
  margin: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

.results-carousel .vertical-stack {
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 95%;
  height: 100%;
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
  box-sizing: border-box;
}

.results-carousel .video-with-label {
  position: relative;
  display: inline-block;
}


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

/* Qualitative Comparison Carousel (adapted from VideoMaMa) */
.paper-container-carousel {
  position: relative;
  max-width: 90%;
  margin: 0 auto 40px auto;
  background-color: #ffffff;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 12px;
}

.section-title-header {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.nav-floating-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  color: #333;
  border: 1px solid #eee;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.nav-floating-btn:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.nav-floating-btn.btn-left { left: 10px; }
.nav-floating-btn.btn-right { right: 10px; }

.master-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  margin-top: 20px;
  position: relative;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2%;
  padding-bottom: 5%;
}

.global-mode-switch-container {
  position: absolute;
  bottom: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.mode-switch-button .mode-btn {
  padding: 6px 14px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 0 3px;
  transition: all 0.2s;
}

.mode-switch-button .mode-btn.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.layout-section {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: relative;
}

.carousel-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: #333;
}

.comparison-section.comp-single {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.single-video-box {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.carousel-video-buffer {
  cursor: pointer;
}

.single-video-box .content-vid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

/* Depth carousel: videos are wide (2048x382 ≈ 5.36:1), use matching aspect ratio */
.carousel-depth-video {
  aspect-ratio: 2048 / 382;
}

.carousel-depth-video .content-vid {
  object-fit: contain;
}

.carousel-video-buffer .carousel-vid-buffer {
  opacity: 0;
  pointer-events: none;
}

.carousel-video-buffer .carousel-vid-active {
  opacity: 1;
}

.caption {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.gallery-title-container {
  text-align: center;
  margin: 15px 0 10px 0;
}

.gallery-title-container .section-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.compare-gallery-grid {
  display: grid;
  width: 100%;
  max-width: 600px;
  margin: 10px auto;
  grid-template-columns: repeat(auto-fill, minmax(72px, 72px));
  gap: 6px;
  padding-bottom: 20px;
  justify-content: center;
}

.compare-gallery-grid .gallery-item {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  background-color: #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  aspect-ratio: 16 / 9;
  max-width: 72px;
}

.compare-gallery-grid .gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 1;
}

.compare-gallery-grid .gallery-item.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  pointer-events: none;
}

/* Show only top-left 1/4 (RGB quadrant) of 2x2 grid video */
.compare-gallery-grid .gallery-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  object-fit: cover;
  object-position: 0 0;
  display: block;
}

@media (max-width: 768px) {
  .paper-container-carousel { padding: 20px; width: 95%; }
  .master-wrapper .nav-floating-btn { width: 35px; height: 35px; font-size: 1rem; }
  .master-wrapper .btn-left { left: -10px; }
  .master-wrapper .btn-right { right: -10px; }
  .compare-gallery-grid { max-width: 100%; grid-template-columns: repeat(auto-fill, minmax(64px, 64px)); }
}
