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 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;
  border: 2px solid #333; /* Small dark gray trim */
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.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-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* Ensure content class supercedes carousel styles */
.content .video-carousel-wrapper {
  position: relative;
  width: 100%;  /* Override 80vw to fit content width */
  max-width: 100%;  /* Ensure no overflow */
  overflow: hidden;
  margin: 0 auto;  /* Centers the wrapper */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0; /* Remove extra bottom padding */
}

/* Place arrows outside the carousel */
.content .carousel-btn {
  position: static;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
  margin: 0 10px;
}

.content .carousel-btn.left {
  order: 0;
}

.content .video-carousel {
  width: 100%;  /* Override 80% to fit within the content */
  overflow: hidden;
  margin: 0 auto;  /* Centers the carousel */
  order: 1;
  flex: 1 1 auto;
  padding-bottom: 0; /* Remove extra bottom padding */
}

.content .carousel-btn.right {
  order: 2;
}

.content .carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.content .carousel-btn:focus {
  outline: none;
}

.content .carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.content .carousel-track {
  display: flex;
  align-items: center; /* Vertically center videos */
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  height: 100%; /* Ensure it fills the parent */
}

.content .carousel-track video {
  width: 100%; /* Fixed width for carousel video */
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  margin-bottom: 0;
  display: block;
}

/* Ensure the carousel and wrapper fill available height for vertical centering */
.content .video-carousel-wrapper,
.content .video-carousel {
  display: flex;
  align-items: center;
  height: 400px; /* Set a fixed height or adjust as needed */
  min-height: 200px;
}

/* Make sure the carousel behaves responsively */
@media (max-width: 768px) {
  .content .video-carousel-wrapper {
    width: 100vw;  /* Full width on smaller screens */
    padding-bottom: 0; /* Remove extra bottom padding on mobile */
    height: 220px; /* Adjust for mobile */
    min-height: 120px;
  }
  .content .carousel-btn {
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    margin: 0 5px;
  }
  .content .video-carousel {
    height: 100%;
    min-height: 120px;
  }
}

.responsive-video {
  width: 100%;
  max-height: 80vh; /* Keep it inside viewport */
  object-fit: contain; /* Maintain aspect ratio */
  border-radius: 8px;
}