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

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

.link-block a {
  margin: 1rem 0;
}

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

.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;
  width: 100% !important;
  max-width: 100% !important;
}

.results-carousel .item {
  margin: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

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

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

.section figure img {
  max-width: 70%;
  width: 70%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

.section figure figcaption {
  margin: 1rem 0;
}


.subsection-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 1.5rem 0;
}

.math-content {
  margin: 1rem 0;
}

ol {
  padding-left: 1.5rem;
}

li {
  margin: 1rem 0;
}

.tips-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 10;
  border-radius: 10px;
  background-color: #cce9afc0;
  padding: 3px 6px;
  user-select: none;
}

.tips-text {
  position: absolute;
  right: 10px;
  top: 50px;
  background-color: #cce9afc0;
  border-radius: 10px;
  padding: 6px;
  font-size: 16px;
  text-align: left;
  /* display: none; */
  /* color: white; */
  max-width: 300px;
  z-index: 10;
  transition: all 0.3s;
  opacity: 0%;
  user-select: none;
}

.tips-icon:hover + .tips-text { 
  display: block;
  opacity: 100%;
}

.model-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(38, 70, 126, 0.8);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    /* disable text selection */
    user-select: none;
}

model-viewer {
  background-color: #f2f3f5;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  user-select: none;
}

.model-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f5f5f5;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.model-container {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
}

.model-wrapper-comparison {
  position: relative;
  min-width: 48%;
  flex: 1;
  margin: 1%;
  aspect-ratio: 1;
  background-color: #f5f5f5;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.model-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(38, 70, 126, 0.8);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  user-select: none;
}

model-viewer {
  width: 100%;
  height: 100%;
  background-color: #f2f3f5;
  border-radius: 15px;
  overflow: hidden;
  user-select: none;
}


@media (max-width: 768px) {
  .model-container {
    flex-direction: column;
    align-items: center;
  }
  
  .model-wrapper {
    width: 90%;
    margin-bottom: 20px;
  }
}

.selection-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  align-items: center;
  flex-direction: row !important;
  margin: 10px;
}

.selectable-image {
  flex: 0 1 0;
  border-radius: 10px;
  border: 0.5px solid #ccc;  
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); 
  max-height: 46%;
  object-fit: contain;
  padding: 1px;          
  background-color: #dde9f7;   
  margin: 1% 5px 1% 5px;
  cursor: pointer;
}

.selectable-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.selectable-image.selected {
  border: 3px solid #4a7aa5; 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); 
}

/* --- Side caption figure: place figcaption to the left or right of image --- */
.figure-side {
  display: flex;
  align-items: flex-start;
  justify-content: space-between; /* remove perceived side padding */
  gap: 0.75rem; /* tighter gap between image and caption */
  margin: 1.25rem 0;
  width: 100%;
}

/* ensure no extra left/right spacing from container styles */
.content .figure-side {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Right (default): image on left, caption on right */
.figure-side.right { flex-direction: row; }

/* Left: caption on left, image on right */
.figure-side.left { flex-direction: row-reverse; }

/* Override generic figure image rules for side layout */
.figure-side img {
  flex: 0 1 58%; /* account for gap so total <= 100% */
  width: 58%;
  max-width: 58%;
  height: auto;
  margin: 0; /* cancel auto-centering from generic figure rule */
  display: block;
  box-sizing: border-box;
}

.figure-side figcaption {
  flex: 0 1 42%;
  width: 42%;
  max-width: 42%;
  margin: 0; /* no extra vertical or side spacing */
  text-align: left;
  line-height: 1.5;
  box-sizing: border-box;
}

/* avoid center text behavior affecting layout */
.figure-side.has-text-centered { text-align: initial; }

/* Stack on small screens */
@media (max-width: 768px) {
  .figure-side { flex-direction: column !important; }
  .figure-side img, .figure-side figcaption {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
  }
  .figure-side figcaption { text-align: center; }
}

/* Carousel protection styles */
.carousel {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.carousel .item {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure carousel container has proper dimensions */
.results-carousel {
  width: 100%;
  position: relative;
}

.results-carousel .item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
