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

.title-icon {
  height: 1em;  /* 改小一點 */
  width: auto;
  vertical-align: middle;
  margin-right: 0.3rem;
  margin-bottom: 0.1em;  /* 微調垂直位置 */
}
.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;
}

/* Image comparison slider styles */
.image-columns {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.image-column {
  flex: 1;
  min-width: 0;
}

.bal-container-origin,
.bal-container-small,
.bal-container-middle {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.bal-after {
  display: block;
  width: 100%;
}

.bal-after img {
  display: block;
  width: 100%;
}

.bal-before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
  width: 50%;
}

.bal-before-inset {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.bal-before-inset img {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

.bal-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 100;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: ew-resize;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bal-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 9999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.handle-left-arrow,
.handle-right-arrow {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
}

.handle-left-arrow {
  left: 6px;
  transform: translateY(-50%);
  border-right-color: #333;
}

.handle-right-arrow {
  right: 6px;
  transform: translateY(-50%);
  border-left-color: #333;
}

.afterLabel,
.beforeLabel {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);  /* 更深的背景,增加對比度 */
  color: white;
  padding: 3px 6px;                 /* 更小的 padding */
  font-size: 9px;                   /* 更小的字體 */
  font-weight: 700;                 /* 加粗字體 */
  border-radius: 3px;
  pointer-events: none;
  letter-spacing: 0.3px;            /* 增加字距,提高可讀性 */
}

.bal-afterPosition {
  top: auto;          /* 取消 top */
  bottom: 8px;        /* 移到底部 */
  right: 8px;         /* 右下角 */
}

.bal-beforePosition {
  top: auto;
  bottom: 8px;        /* 移到底部 */
  left: 8px;          /* 左下角 */
}

/* 響應式設計 - 在小螢幕上改為垂直排列 */
@media (max-width: 1200px) {
  .image-columns {
    flex-wrap: wrap;
  }
  
  .image-column {
    flex: 0 0 48%;
    min-width: 48%;
  }
}

@media (max-width: 768px) {
  .image-columns {
    flex-direction: column;
  }
  
  .image-column {
    flex: 1;
    min-width: 100%;
  }
  
  .afterLabel,
  .beforeLabel {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .bal-handle {
    width: 30px;
    height: 30px;
  }
  
  .handle-left-arrow,
  .handle-right-arrow {
    border-width: 4px;
  }
}
