/* ===== HSLVision project page - nerfies-style, Bulma-based ===== */

body {
  font-family:
    "Noto Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  /* the full-bleed teaser row uses 100vw; prevent a stray horizontal scrollbar */
  overflow-x: hidden;
}

/* institution + team logos, shown under the authors */
.team-logo {
  margin: 1.1rem 0 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.team-logo a {
  display: inline-flex;
  align-items: center;
}
.team-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.team-logo .uva-logo {
  width: 240px;
  max-width: 60%;
}
.team-logo .irl-logo {
  width: 90px;
  max-width: 22%;
}
.team-logo .whirlwind-logo {
  width: 150px;
  max-width: 40%;
}

/* "Hungry for more?" whirlwind call-to-action logo */
.more-logo {
  display: inline-block;
  margin-top: 0.6rem;
  width: 150px;
  max-width: 60%;
}
.more-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.publication-title {
  font-weight: 700;
}
.dnerf {
  font-variant: small-caps;
}

.publication-authors,
.publication-affil {
  margin-top: 0.6rem;
}
.author-block {
  display: inline-block;
  margin-right: 0.4rem;
}
.publication-venue {
  color: #777;
  margin-top: 0.6rem;
}

/* link buttons row */
.publication-links {
  margin-top: 1.4rem;
}
.publication-links .link-block {
  display: inline-block;
  margin: 0.25rem;
}
.button .hf-logo {
  width: 1.1em;
  height: 1.1em;
}

/* teaser gallery - trio of RGB/depth sliders */
.teaser-container.is-max-desktop {
  max-width: 1200px;
}
.slider-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  /* break out of the 1200px container so the trio spans the full viewport */
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.slider-row .ba {
  aspect-ratio: 4 / 3;
}
@media (max-width: 768px) {
  .slider-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
}
.teaser .subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #555;
}
@media (max-width: 768px) {
  .teaser .subtitle {
    margin-top: 1.25rem;
    padding: 0 1.5rem;
  }
}

/* annotated per-location sample gallery */
.sample-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.sample-gallery figure {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}
.sample-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.sample-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.6rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}
@media (max-width: 768px) {
  .sample-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* annotation legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: center;
  margin-top: 1.25rem;
}
/* caption that follows the legend: a little air above, a clear gap before
   the next heading so the section doesn't feel cramped */
.legend + p {
  margin-top: 0.75rem;
  margin-bottom: 2.75rem;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.legend i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  display: inline-block;
}

/* benchmark tables */
table.table .grouprow td {
  font-style: italic;
  font-weight: 600;
  background: #fafafa;
}
table.table tr.best td {
  background: #f1f5fb;
}
table.table th {
  text-align: center;
}
table.table td:not(:first-child) {
  text-align: center;
}

/* before/after depth slider */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 1100/935;
  border-radius: 6px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba .top {
  clip-path: inset(0 0 0 50%);
}
.ba .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}
.ba .knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  color: #333;
}
.ba .lbl {
  position: absolute;
  bottom: 0.7rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.ba .lbl.l {
  left: 0.7rem;
}
.ba .lbl.r {
  right: 0.7rem;
}

/* BibTeX block */
.bib {
  position: relative;
}
.bib pre {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
}
.bib .copy {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.bib .copy:hover {
  background: #f0f0f0;
}
