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


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

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.persist {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.section-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.subsection-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

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

.affil-num {
  font-size: 0.7em;
  vertical-align: super;
}

/*override all fonts to white when using a video grid*/
.hero-section .publication-title,
.hero-section .publication-authors,
.hero-section .publication-authors a,
.hero-section .publication-venue,
.hero-section .publication-authors span,
.hero-section .publication-authors sup {
  color: #ffffff !important;
}

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

.method-image {
  width: 100%;
  border-radius: 5px;
  margin: 2rem 0;
}

.inline-icon {
  height: 1em; /* similar to 1.5ex in LaTeX */
  vertical-align: middle; /* keeps icon aligned with text */
  display: inline-block;
}

.inline-icon-small {
  height: 0.9em; /* similar to 1.5ex in LaTeX */
  vertical-align: middle; /* keeps icon aligned with text */
  display: inline-block;
}

.inline-icon-large {
  height: 1.2em;
  vertical-align: middle;
  display: inline-block;
}

/* --- Video-grid landing hero (template-style) --- */

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section .video-grids{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#000;
}

/* each half: clips the zoom so it cannot bleed into the other column */
.hero-section .video-half{
  position:relative;
  overflow:hidden;          /* key */
  background:#000;
}

/* THIS element is both the grid AND the animated thing */
.hero-section .video-grid{
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  grid-template-rows: repeat(var(--rows, 4), 1fr);

  transform-origin:50% 50%;
  animation: zoomOut 10s ease-in-out forwards;
  will-change: transform;
}

/* cell + video */
.hero-section .video-cell{
  position:relative;
  overflow:hidden;
  background:#000;
}

.hero-section .video-cell video{
  width: 55vw;
  height: 100vh;
  object-fit:cover;     /* or cover */
  display:block;
}

@keyframes zoomOut{
  0%,50%{ transform: scale(2); }
  100%{  transform: scale(1); }
}

@keyframes zoomOutMobile{
  0%,50%{ transform: scale(1.5); }
  100%{  transform: scale(1); }
}

/*!* mobile: anchor zoom to top-left *!*/
@media (max-width: 768px) {
  .hero-section .video-grids {
    grid-template-columns: 1fr !important;/* stack vertically */
  }

  .hero-section .video-half.right .video-grid {
    animation: zoomOutMobile 10s ease-in-out forwards;
  }

  .hero-section .video-half.left .video-grid {
    animation: zoomOutMobile 10s ease-in-out forwards;
  }

  .hero-section .video-cell video{
    width: 100vw;
    height: 55vh;
  }
}

.compare-title{
  font-size: 1rem;
  font-weight: 600;
  text-align: center;

  /* Reserve 2 lines worth of height */
  line-height: 1;

  /* Keep spacing consistent */
  margin: 0 0 1rem 0;

  /* Optional: clamp so it never becomes 3+ lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Mobile: stack comparison cards vertically */
@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Ensure both columns always have equal height */
.denoising-grid {
  align-items: stretch;
}

/* Make the left column distribute content evenly */
.denoising-grid > div:first-child {
  display: grid;
  grid-template-rows: auto repeat(4, 1fr);
  gap: 0.75rem;
  height: 100%;
}

/* Remove margin-based spacing and use gap instead */
.denoising-grid .denoising-images img {
  margin: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ensure video column fills available height */
.denoising-grid > div:last-child {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.denoising-grid video {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {

  .denoising-grid > div:first-child {
    grid-template-rows: auto auto auto auto auto;
  }

  .denoising-grid video {
    height: auto;
  }
}

@media (max-width: 768px) {
  .denoising-grid h4 {
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem !important;
  }
}

@media (max-width: 768px) {
  .compare-grid video {
    width: 100% !important;
    height: auto !important;          /* let it size naturally */
    object-fit: contain !important;   /* key: no cropping */
    background: #000;                 /* nicer than transparent bars */
    border-radius: 8px;
  }
}

/* Readability overlay (matches template layering idea) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
          135deg,
          rgba(0, 0, 0, 0.45) 0%,
          rgba(0, 0, 0, 0.30) 50%,
          rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Make the Bulma hero inside the overlay transparent */
.hero-section .hero.is-transparent {
  background: transparent;
}

/* Optional: make arXiv / PDF buttons text stay white */
.hero-section .button.is-dark {
  color: #ffffff;
}

/* Optional: improve contrast slightly */
.hero-section .publication-title {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hint {
  text-align: center;
  color: #444444;
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.img-cap-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.img-cell img {
  margin: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cap-cell { display:flex; align-items:center; }

.lim-cap{
  line-height: 1.45;
  font-size: 1rem;
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
  .img-cap-grid {
    grid-template-columns: 1fr 1fr !important;
    margin-bottom: 0.2rem !important;
    gap: 0.5rem !important;
  }
  .lim-cap {
    line-height: 1.2 !important;
    font-size: 0.7rem !important;
    /*text-align: justify !important;*/
  }
}

.more-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 per row */
  gap: 1rem;
}

.more-results-item {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Equal heights across different resolutions */
.more-results-video {
  display: block;
  width: 100%;
  height: auto;        /* tweak */
  object-fit: contain;  /* or cover if you prefer cropping */
}

/* Hide everything after the first 4 items by default */
.more-results-grid:not(.expanded) .more-results-item:nth-child(n+5) {
  display: none;
}

.more-results-actions {
  margin-top: 1rem;
  text-align: center;
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
  .more-results-grid {
    grid-template-columns: 1fr;
  }
  .more-results-video {
    width: 100%;
    height: auto;
  }
}
