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


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

.link-block a,
.link-block .button {
    margin-top: 5px;
    margin-bottom: 5px;
    vertical-align: middle;
}

.link-block {
    display: inline-block;
    vertical-align: top;
}

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


.has-bg-img { 
  background: url('/static/images/toss.jpeg')center center;
   background-size:cover; }



.overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.0); /* 0% opacity black */
z-index: 1; /* Make sure it's behind the text */
transition: opacity 1.0s;
}
  
.hero-body,
.hero-head,
.hero-foot {
  z-index: 2; /* Ensure text is above the overlay */
  transition: opacity 1.0s;
}

.section {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.section-title-accent {
  text-align: center;
  border-bottom: 5px solid #f59d38;
  display: inline-block;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 15px;
  margin-bottom: 40px;
  position: relative;
}

.section-title-accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f59d38, transparent);
  opacity: 0.5;
}

.item-title {
    font-family: var(--title-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    letter-spacing: -0.016em;
}

/* Navbar hover effects */
.navbar a.navbar-item {
  background-color: rgba(54, 54, 54, 0.6);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar a.navbar-item:hover {
  background-color: rgba(54, 54, 54, 0.8) !important;
  transform: translateY(-2px);
}

.navbar-item[style*="cursor: not-allowed"] {
  pointer-events: none;
}

/* Style for non-link navbar items (Coming Soon) */
.navbar-end .navbar-item:not(a) {
  background-color: rgba(54, 54, 54, 0.6);
  border-radius: 8px;
}

.navbar-end .navbar-item .button.is-inverted {
  background-color: rgba(54, 54, 54, 0.6);
  border-radius: 8px;
}

/* Responsive line breaks for author list */
.desktop-br {
  display: inline;
}

@media screen and (max-width: 1024px) {
  .desktop-br {
    display: none;
  }
}

/* Subsection description styling */
.subsection-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 25px auto;
  padding: 15px 25px;
  font-size: 1.25rem;
  font-style: italic;
  color: #2c3e50;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #f59d38;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(118, 185, 0, 0.1);
  line-height: 1.6;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .subsection-description {
    font-size: 1.1rem;
    padding: 12px 20px;
  }
}

.uniform-video {
    width: 100%;
    aspect-ratio: 16 / 9;   /* 统一比例，可改成 4/3、1/1 等 */
    object-fit: cover;      /* 自动裁切填满 */
    object-position: bottom;
    border-radius: 10px;
}

.uniform-video-4-3 {
    width: 100%;
    aspect-ratio: 4 / 3;   /* 统一比例，可改成 4/3、1/1 等 */
    object-fit: cover;      /* 自动裁切填满 */
    object-position: bottom;
    border-radius: 10px;
}

.title-with-logo {
  display: flex;
  align-items: center;   /* 垂直居中 */
  gap: 5px;             /* 文字与图标的间距 */
}

.title-logo {
  height: 80px;     
  width: auto;
  margin-right: -50px;   /* 调节与标题的距离 */
  margin-left: 40px;  /* 🔥 图标向左移动一些 */
  margin-top: -60px;
}

/* Grid layouts - One, Two, Three columns */
.grid-one-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--content-spacing);
    margin-top: 2.5rem;
}

.grid-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--content-spacing);
    margin-top: 2.5rem;
}


.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--content-spacing);
    margin-top: 2.5rem;
}

.grid-item {
    width: 66.66%;
    margin: 0 auto; /* 让它居中 */
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: default;
    /* Prevent layout thrashing */
    contain: layout style;
    /* GPU acceleration */
    will-change: transform;
    background: var(--bg-white);
    border-radius: var(--border-radius-large);
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.grid-item:hover {
    transform: translateZ(0) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--hover-border);
}

/* Optional aspect ratio classes for convenience */
.item-image.aspect-square { aspect-ratio: 1/1; }
.item-image.aspect-wide { aspect-ratio: 16/9; }
.item-image.aspect-tall { aspect-ratio: 3/4; }
.item-image.aspect-ultra-wide { aspect-ratio: 21/9; }

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make images inside grid items slightly narrower and centered
   so the image frame is a bit smaller than the overall grid item. */
.grid-item .item-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* keep pseudo-elements positioned correctly */
}

@media screen and (max-width: 768px) {
  .grid-item .item-image {
    width: 100%;
    max-width: none;
  }
}

/* For natural image sizing (no fixed container height) */
.item-image.natural {
    height: auto;
}

.item-image.natural img {
    height: auto;
    object-fit: contain;
}

.item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.grid-item:hover .item-image {
    background: var(--hover-bg);
    border-color: var(--hover-border);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: scale(1.01);
}


.grid-item:hover .item-image::before {
    transform: translateX(100%);
}

.item-title {
    font-family: var(--title-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    letter-spacing: -0.016em;
}

.grid-item:hover .item-title {
    color: var(--secondary-color);
}

.item-description {
    color: var(--description-text);
    line-height: 1.7;
    font-size: 1.05rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-weight: 400;
}

.grid-item:hover .item-description {
    color: var(--content-text);
}
