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



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

.model-name {
  font-variant: small-caps;
}

.result-row img{
  width: 75%;
  margin: auto;
  left: 0;
  right: 0;
}
.result-row td{
  width: 25%;
  border: 10px;
  padding: 1rem 0;
}

tr.result-row {
  border-bottom: 1px solid #e0e0e0;
}

tr.result-row:last-child {
  border-bottom: none;
}

.prompt-row{
  text-align: center;
  /* 移除特殊字体样式，使用正文默认样式 */
}

.prompt-background{
  background: #5f5555;
  font-size: 1.2rem;

}

.prompt{
  text-align: center;
  padding: 1rem;

}

.inserted-image {
  max-width: 80%;     /* Set the maximum width for the image */
  height: auto;       /* Ensure the height adjusts automatically to maintain aspect ratio */
  margin: 30px;       /* Add space above and below the image */
  margin-top: 10px;
  display: block;     /* Make sure the image is treated as a block-level element */
  margin-left: auto;  /* Center the image horizontally */
  margin-right: auto;
  border-radius: 10px;
  box-shadow: 2px 2px 10px 3px #00000030;
}

/* Section 5: Results layout (non-carousel) */
.results-media {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  margin: 0 0;
}

.results-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

@media screen and (max-width: 768px) {
  .results-meta {
    grid-template-columns: 1fr;
  }
}

.results-ref-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap;    /* 强制一行内展示 */

}

.results-ref {
  flex: 0 1 auto;  /* 宽度可不同，但在父容器内可收缩 */
  min-width: 0;
  margin: 0.5rem 0;
}

.results-ref img {
  width: auto;            /* 宽度随比例变化 */
  max-width: 100%;        /* 防止单张图宽度超过列宽 */
  height: clamp(110px, 12vw, 160px);
  display: block;
  border-radius: 0;
  object-fit: contain;
}

/* Section 5: black background + vertical centering for paired blocks */
.results-pair-box {
  background: #000;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 12px;
}

/* Keep refs layout intact inside black box */
.results-pair-box .results-ref-list {
  margin-top: 0 !important;
}

/* Make prompt readable on black background */
.results-pair-box.custom-prompt-box,
.results-pair-box.custom-prompt-box .prompt-text,
.results-pair-box.custom-prompt-box .prompt-title {
  color: #fff;
}

.results-pair-box.custom-prompt-box {
  background-color: #000;
  border-radius: 0;
  margin-top: 0;
}

.results-plus {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

/* Make prompt box fill the height of results-meta row */
.results-meta .custom-prompt-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.results-meta .custom-prompt-box .prompt-text {
  flex: 1;
}

.results-divider {
  border: 0;
  border-top: 1px solid #706666;
  margin-top: 2rem;
}

.results-grid {
  margin: 22px 0;
}
/* Make Results prompt boxes equal height */
.results-grid > .column {
  display: flex;
  flex-direction: column;
}

.results-grid .custom-prompt-box {
  height: clamp(70px, 12vw, 140px);
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.results-grid .custom-prompt-box .prompt-text {
  flex: 1;
  overflow: auto;
}

/* Section 2: Teaser reference images */
.teaser-ref-img {
  width: 100%;
  height: clamp(90px, 10vw, 140px);
  display: block;
  border-radius: 0;
  object-fit: contain;
}

/* Black background + vertical centering for video5 refs+prompt pair */
.results-pair-wrapper {
  background: #000;
  padding: 0px 16px;
  margin: 0 12px;
}

.results-pair-wrapper .columns {
  align-items: center;
}

.results-pair-wrapper .prompt-text {
  color: #fff;
}

/* Only for assets/examples/ID-Crafter_s2v_video1_sub3.png */
.teaser-ref-img--square {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Action buttons row: keep arXiv, Code, Cite on one line */
.actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.actions-row .link-block {
  display: inline-flex;
}