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 {
}

.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;
}

/* PartUV Results Carousel */
.pv-gallery {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}
.pv-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.pv-track::-webkit-scrollbar { height: 10px; }
.pv-track::-webkit-scrollbar-thumb {
  background: #d0d0d0; border-radius: 6px;
}
.pv-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 2rem) / 4); /* 4-up default - smaller cards */
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
@media (max-width: 1080px) {
  .pv-card { flex-basis: calc((100% - 1rem) / 3); } /* 3-up on medium */
}
@media (max-width: 680px) {
  .pv-card { flex-basis: 100%; } /* 1-up */
}
.pv-card-header {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #f7f8fa;
  border-bottom: 1px solid #eee;
}
.pv-card-body { padding: 10px 12px 12px; }

.pv-row {
  margin-bottom: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.pv-row-header {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; font-weight: 600;
  padding: 8px 10px; background: #fafafa; border-bottom: 1px solid #f3f3f3;
}
.pv-badge {
  font-size: 0.72rem; font-weight: 600; opacity: 0.8;
  border: 1px solid #e6e6e6; border-radius: 999px; padding: 2px 8px;
}
.pv-figure {
  position: relative; width: 100%; aspect-ratio: 1;
  background: #fafafa;
}
.pv-figure img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* N/A state */
.pv-na {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: 0.85rem; color: #999;
  background:
    repeating-linear-gradient(45deg, #f5f5f5 0 10px, #f0f0f0 10px 20px);
}

/* Nav buttons */
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #e0e0e0; background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: grid; place-items: center;
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 2;
}
.pv-prev { left: -10px; }
.pv-next { right: -10px; }
@media (max-width: 680px) {
  .pv-prev { left: 2px; } .pv-next { right: 2px; }
}
.pv-nav:active { transform: translateY(-50%) scale(0.98); }

/* Make Results section smaller */
#Results .container {
  max-width: 1000px;
}
#Results .column.is-four-fifths {
  width: 100% !important;
}
/* Show more cards per row on wide screens to make each card smaller */
@media (min-width: 1280px) {
  .pv-card { flex-basis: calc((100% - 4rem) / 5); } /* 5-up on wide screens */
}

/* Compact Results section vertical spacing */
#Results.section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
#Results .title.is-3 {
  margin-bottom: 0.5rem;
}
#Results .pv-gallery {
  margin-top: 0.5rem;
}


/* --- Applications horizontal board --- */
.apps-board { position: relative; margin-top: 1rem; }
.apps-track {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: none;
}
.apps-track::-webkit-scrollbar { display: none; }

.apps-card {
  scroll-snap-align: center;
  flex: 0 0 82%;
  max-width: 82%;
  border-radius: 18px;
  background: linear-gradient(180deg,#111218 0%,#0b0c10 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.apps-card:focus-within,
.apps-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.32); }
@media (min-width: 900px)  { .apps-card { flex-basis: 58%; max-width: 58%; } }
@media (min-width: 1200px) { .apps-card { flex-basis: 46%; max-width: 46%; } }

.apps-media-wrap {
  position: relative;
  aspect-ratio: 16/10;         /* unifies tile height while allowing mixed ratios */
  display: grid; place-items: center;
  background: #0f1016;
}
.apps-media {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  image-rendering: auto;
}
.apps-na {
  color:#a9acb5; font-size:.9rem;
  padding: 28px; text-align:center; width:100%;
}

.apps-body { padding: 14px 16px 16px; color: #e9ecf1; }
.apps-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; margin-bottom: 6px; }
.apps-desc  { color: #aeb3bd; font-size: .92rem; line-height: 1.35; }
.apps-chip  {
  display:inline-block; margin-top: 8px;
  font-size: .75rem; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}

.apps-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(17,17,20,.6);
  color: #fff; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  z-index: 2; backdrop-filter: blur(4px);
}
.apps-prev { left: 6px; } .apps-next { right: 6px; }
.apps-nav:disabled { opacity: .35; cursor: default; }

.apps-edge {
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none;
}
.apps-edge-left  { left: 0;  background: linear-gradient(90deg, rgba(16,16,20,1) 0%, rgba(16,16,20,0) 85%); }
.apps-edge-right { right: 0; background: linear-gradient(270deg, rgba(16,16,20,1) 0%, rgba(16,16,20,0) 85%); }

.apps-dots { display:flex; justify-content:center; gap:8px; margin-top: 10px; }
.apps-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.28); border: none;
}
.apps-dot.is-active { background: #fff; width: 18px; border-radius: 8px; transition: width .2s ease; }


/* === Applications scroller === */
.apps-gallery {
  position: relative;
  margin-top: 0.75rem;
}
.apps-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scrollbar-width: none;           /* Firefox */
}
.apps-track::-webkit-scrollbar {   /* Chrome/Safari */
  display: none;
}

.app-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  background: #fff;
}

.app-figure {
  width: 100%;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}
.app-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;   /* keep full image without cropping */
}

.app-caption {
  margin-top: 12px;
  text-align: left;
}
.app-caption h3 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.app-caption p {
  color: #666;
  line-height: 1.55;
}

/* Arrow buttons */
.apps-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  user-select: none;
}
.apps-prev { left: -12px; }
.apps-next { right: -12px; }

@media (max-width: 480px) {
  .app-figure { max-height: 360px; }
}
