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

/* ============================================================
   FARM custom styles (added on top of the nerfies template)
   ============================================================ */

/* --- Full-bleed video hero (umi-on-legs style) --- */
.hero.farm-hero {
  position: relative;
  overflow: hidden;
  /* gradient fallback shown until a background clip is dropped in */
  background: radial-gradient(circle at 30% 20%, #2b3a55 0%, #1b2333 45%, #0e131d 100%);
  color: #fff;
}
/* Drop-in slot for a looping background clip later: place a
   <video class="farm-hero-video"> as the first child of .farm-hero.
   It covers the whole hero like umi-on-legs' teaser background. */
.farm-hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* YouTube iframe background: scale a 16:9 iframe to cover the hero, centered,
   and make it non-interactive so clicks never hit the YouTube player. */
.farm-hero-yt {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.farm-hero-yt iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* cover both dimensions: at least full width AND full height, 16:9 */
  width: 100vw;
  height: 56.25vw;       /* 100vw * 9/16 */
  min-height: 100vh;
  min-width: 177.78vh;   /* 100vh * 16/9 */
}
/* Dark scrim over the video/gradient so overlaid text stays readable. */
.farm-hero-scrim {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(8,12,20,0.55) 0%, rgba(8,12,20,0.35) 45%, rgba(8,12,20,0.7) 100%);
  z-index: 1;
}
.farm-hero .hero-body {
  position: relative;
  z-index: 2;
}
.farm-hero .farm-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.farm-hero .farm-tagline {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  color: #eaf1ff;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.farm-hero .publication-authors,
.farm-hero .publication-authors span {
  color: #f3f6ff !important;
}
.farm-hero .publication-venue {
  color: #cfe0ff;
}
/* scroll-down hint at the bottom of the hero */
.farm-hero-scroll {
  position: absolute;
  bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  animation: farm-bounce 2s infinite;
}
@keyframes farm-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
/* marker so we remember the hero is waiting on a background clip */
.farm-hero-placeholder-note {
  position: absolute;
  bottom: 8px; right: 12px;
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Google Sans', sans-serif;
}

/* --- Teaser image --- */
/* restore top spacing the template's `.teaser .hero-body` removes, so the
   teaser image isn't flush against the hero video above it */
.teaser .hero-body.farm-teaser {
  padding-top: 3rem;
}
.farm-teaser img {
  border-radius: 10px;
  width: 100%;
  display: block;
}

/* --- Example grid: filled videos and "coming soon" skeletons share an
       identical 16:9 media box so they're always the same size --- */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;   /* don't stretch cells to the tallest row */
}
@media screen and (max-width: 768px) {
  .skeleton-grid { grid-template-columns: 1fr; }
}

/* one item = a 16:9 media box + a label below it */
.example-item {
  width: 100%;
}
.example-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}
.example-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* skeleton (unfilled) variant of the same box */
.example-media.is-skeleton {
  border: 2px dashed #c9c9c9;
  background: repeating-linear-gradient(
      45deg, #f7f7f7, #f7f7f7 12px, #f1f1f1 12px, #f1f1f1 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  text-align: center;
  padding: 1rem;
}
.example-media .skeleton-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}
.example-label {
  margin-top: 0.6rem;
  font-weight: 600;
  font-family: 'Google Sans', sans-serif;
  text-align: center;
  color: #444;
}
.example-sub {
  margin-top: 0.1rem;
  font-size: 0.85rem;
  text-align: center;
  color: #9a9a9a;
}

/* --- Interactive scene-graph panel placeholder --- */
.interactive-panel-placeholder {
  position: relative;
  border: 2px dashed #9bb4d8;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 40%, rgba(123,158,214,0.12), rgba(123,158,214,0.02) 70%),
    #fbfcff;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #5a6b87;
  padding: 2rem;
}
.interactive-panel-placeholder .panel-icon {
  font-size: 3rem;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}
.interactive-panel-placeholder .panel-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}
.interactive-panel-placeholder .panel-sub {
  max-width: 36rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* --- Anonymized author block --- */
.author-block.anon {
  color: #888;
  font-style: italic;
}


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