html {
  scroll-behavior: smooth;
}

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

.publication-title,
.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  line-height: 1.2 !important;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-links {
  margin-top: 1rem;
}

.link-block a {
  margin: 0.25rem 0.1rem;
}

.content p {
  text-align: justify;
}

.thread-section h3.title {
  margin-top: 2rem;
}

/* Figures, one per row */
.figure {
  margin: 1.5rem 0 2rem;
}

.figure img {
  display: block;
  width: 100%;
}

/* One video per result, stacked, with its description below */
.result {
  margin-bottom: 2.5rem;
}

.result-video {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #000;
}

.result-video.is-narrow {
  max-width: 560px;
  margin: 0 auto;
}

.caption {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  text-align: justify;
}

/* Rows of clips: each grows by its aspect ratio (--ar), so a row shares one height */
.clip-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.clip {
  flex: var(--ar) 1 0;
  min-width: 0;
  margin: 0;
}

.clip video {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.clip figcaption {
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.35rem;
}

@media (max-width: 600px) {
  .clip-row {
    flex-direction: column;
  }

  .clip {
    flex: none;
  }

  .clip video {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
  }
}
