html {
  font-size: 130%;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

.dnerf {
  font-variant: small-caps;
}

  
.subtitle {
  padding-top: 10px;
  font-size: 1rem;
}

.teaser .hero-body {
}


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

.section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: black;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 20px;
  font-size: 0;
}

.container {
  display: block; /* ensure Bulma containers behave as blocks */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.explainimg {
  display: flex; /* Enables flexbox for side-by-side layout */
  justify-content: center; /* Centers the images horizontally */
  gap: 20px; /* Adds spacing between the images */
}

.explainimg video {
  width: 50%; /* Scales the video to 50% of its container's width */
  height: auto; /* Maintains the aspect ratio */
}

.explainimg img {
  width: auto; /* Adjusts the width automatically */
  height: 600px; /* Sets a consistent height for the images */
  object-fit: contain; /* Ensures the images maintain their aspect ratio */
}

.explaintext {
  padding-top: 20px;
  padding-bottom: 60px;
  width: 60%;
  margin: 0 auto; 
  text-align: center;
}

.selltext {
  padding-top: 20px;
  padding-bottom: 60px;
  width: 60%;
  margin: 0 auto; 
  text-align: center;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb { 
  font-size: smaller;
}

.hero .title,
.hero .publication-title,
.hero .publication-authors,
.hero .publication-authors a {
    color: white !important;
}


.hero .hero-body {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Increase overall site width */
.container.is-max-desktop {
    max-width: 1200px !important;
}

@media screen and (min-width: 1408px) {
    .container.is-max-desktop {
        max-width: 1200px !important;
    }
}

/* Teaser shared layout (used by both teaser sections) */
.teaser .teaser-gifs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.teaser .gif-item {
  flex: 1 1 30%;
  min-width: 280px;
  text-align: center;
}

.teaser .gif-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Captions under teaser GIFs */
.teaser .gif-item p {
  font-size: 1rem;
  line-height: 1.4;
}

/* Mobile responsive styles */
@media screen and (max-width: 900px) {
  .explainimg {
    flex-direction: column;
    gap: 10px;
  }
  
  .explainimg img {
    height: 300px;
  }
  
  .explainimg video {
    width: 100%;
  }

  .explaintext {
    width: 90%;
  }
  
  /* Target the teaser flex container directly */
  .teaser .teaser-gifs {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .teaser .gif-item {
    width: 90% !important;
    max-width: 300px !important;
    min-width: 0 !important; /* ensure min-width doesn't fight mobile width */
    margin-bottom: 20px !important;
  }
  
  .teaser .gif-item img {
    width: 100% !important;
    height: auto !important;
  }
  
  /* Make efficiency/intuitive images stack on mobile */
  .section.hero.is-light .hero-body > div {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .section.hero.is-light .hero-body > div > div {
    min-width: auto !important;
    flex: none !important;
  }
  
  /* Ensure container doesn't overflow */
  .container.is-max-desktop {
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  /* Teleop section: allow full-width items on mobile (override 300px cap) */
  .teaser .teaser-gifs.teleop-split {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .teaser .teaser-gifs.teleop-split .gif-item {
    width: 100% !important;
    max-width: none !important;  /* remove 300px cap */
    min-width: 0 !important;
    margin-bottom: 0 !important;
    flex: 1 1 auto !important;
  }
  .teaser .teaser-gifs.teleop-split .gif-item.teleop-left img {
    max-width: 400px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important; /* center the image */
  }
  .teaser .teaser-gifs.teleop-split .gif-item.teleop-right iframe {
    width: 100% !important; /* iframe height handled by script */
  }
}