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: 100%;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: contain;
}

.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;
}
.demo-card {
    width: 100%;
    max-width: 100%; /* fill the enclosing container (is-max-desktop) */
    margin: 40px 0; /* vertical spacing; horizontal controlled by container */
    background: #ffffff;
    padding: 12px 0; /* remove horizontal padding so video edges align with container/text */
    border-radius: 20px; /* Soft rounded corners */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* Soft, professional shadow */
    border: 1px solid #f0f0f0; /* Subtle border */
    text-align: center;
    box-sizing: border-box; /* ensure padding is included in width */
}

/* Make the video take up most of the card width and keep a taller 4:3 aspect ratio */
.demo-card .video-container {
    width: 100%;
    /* Use modern aspect-ratio when available */
    aspect-ratio: 4 / 3;
    /* Fallback for browsers without aspect-ratio */
    position: relative;
    height: auto;
    overflow: hidden;
    background: #000; /* black background for letterboxing */
    border-radius: 12px;
}

/* Ensure iframe fills the video container */
.demo-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-card .demo-info {
    margin-top: 14px;
    color: #333;
}

@media (max-width: 768px) {
    .demo-card {
        padding: 10px 0;
        margin: 24px 0;
    }
    .demo-card .video-container {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }
}

/* Floating GitHub FAB - prominent but tasteful */
.github-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px; /* pill */
    box-shadow: 0 8px 30px rgba(17,17,17,0.18);
    text-decoration: none;
    z-index: 9999;
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
    opacity: 0.98;
    font-weight: 600;
}
.github-fab .fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 14px;
}
.github-fab .fab-text {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    color: #fff;
}
.github-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(17,17,17,0.22);
}
.github-fab:focus {
    outline: 3px solid rgba(255,255,255,0.12);
    outline-offset: 4px;
}

/* Hide on very small screens to avoid covering core content */
@media (max-width: 420px) {
    .github-fab { display: none; }
}

/* Ensure footer contents are still reachable (don't obscure sticky footers) */
@media (max-height: 700px) {
    .github-fab { bottom: 18px; }
}

/* Spacer utility classes: use empty <div class="spacer spacer--xl"></div> for vertical spacing */
.spacer { display: block; width: 100%; }

/* Default sizes (desktop-first) */
.spacer--xl { height: 3.5rem; }
.spacer--lg { height: 2.5rem; }
.spacer--sm { height: 1.5rem; }

/* Tablet and smaller: reduce heights for better fit */
@media (max-width: 768px) {
  .spacer--xl { height: 2.5rem; }
  .spacer--lg { height: 1.5rem; }
  .spacer--sm { height: 1rem; }
}

/* Mobile: compact spacing */
@media (max-width: 480px) {
  .spacer--xl { height: 1.5rem; }
  .spacer--lg { height: 1rem; }
  .spacer--sm { height: 0.75rem; }
}

/* System design cards: avoid stretched / compressed images */
.system-cards .card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  max-width: 56rem; /* limit width so stacked cards are not too wide */
  margin-left: auto;
  margin-right: auto;
}

/* Desktop: use wider aspect ratio so cards don't appear narrow */
.system-cards .card-image figure.image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
}

/* Ensure the img fills the figure and preserves its aspect with cover */
.system-cards .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.system-cards .card-content {
  padding-top: 0.6rem;
  padding-bottom: 0.9rem;
}

/* Hover lift for subtle interactivity */
.system-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

/* Constrain visual height on very large screens to keep balance */
@media (min-width: 1200px) {
  .system-cards .card-image figure.image { max-height: 320px; }
}

/* Mobile/tablet: use 4:3 to avoid overly wide images and reduce max-height */
@media (max-width: 1024px) {
  .system-cards .card-image figure.image {
    aspect-ratio: 4 / 3;
    max-height: 260px;
  }
}
