html { scroll-behavior: smooth; }

/* Floating hamburger menu */
.ham-menu { position: fixed; top: 12px; left: 12px; z-index: 1100; }
.ham-btn { width: 44px; height: 44px; background: #fff; border: 1px solid #c5d6ff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; cursor: pointer; }
.ham-btn .bar { display: block; width: 22px; height: 2.5px; background: #2f343a; border-radius: 2px; }
.ham-panel { position: absolute; top: 52px; left: 0; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 10px 12px; min-width: 260px; display: none; }
.ham-panel a { display: block; padding: 10px 8px; color: #555; text-decoration: none; border-radius: 6px; }
.ham-panel a:hover { background: #f4f6fa; color: #111; }
.ham-menu.is-open .ham-panel { display: block; }

@media (max-width: 768px) {
	.ham-panel { min-width: 210px; }
}

body {
  font-family: 'Noto Sans', sans-serif;
}
/* Responsive title padding */
@media screen and (max-width: 768px) {
  .hero.is-small .container .title.is-3 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

.custom-bullets {
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 1.5em;
  padding-left: 1.5em;
}
    /* Add this to your existing CSS */
  .section-container {
    width: 80%;
    max-width: 1200px;
    /* Optional: set a max-width */
    margin: 0 auto;
    padding: 0 20px;
    /* Add some horizontal padding */
  }

  @media screen and (max-width: 768px) {
    .section-container {
      width: 90%;
      /* Slightly wider on mobile */
      padding: 0 15px;
    }
  }

  /* For hero sections */
  .hero.is-small .container,
  .hero.is-small .hero-body {
    width: 100%;
    max-width: 100%;
  }
.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 {
}

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

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

.results-carousel video {
  margin: 0;
}

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

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

/* --- Papers table description styles --- */
.description-container { max-width: 100%; }
.description-text { max-height: 3.6em; overflow: hidden; position: relative; }
.description-text::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.2em; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); }
.description-text.expanded { max-height: none; }
.description-text.expanded::after { display: none; }
.description-toggle { margin-top: 0.25rem; }

/* Filters row layout fix */
#papers .columns .column { min-width: 0; }
#papers .select.is-fullwidth select { width: 100%; }
#papers .input { width: 100%; }

@media screen and (min-width: 1024px) {
	#papers .columns.is-vcentered { flex-wrap: nowrap; }
}

/* Responsive enhancements for papers section and general content */
#papers .columns .column { margin-bottom: 0.5rem; }
#papers .level { flex-wrap: wrap; }
#papers .level-right { display: flex; justify-content: flex-end; }
#papers .level-left { display: flex; align-items: center; }

/* Make YouTube iframe responsive without affecting other embeds */
iframe[title="YouTube video player"] {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	border: none;
}

/* Table readability on mobile: hide Conference/Paper/Website, favor description */
@media screen and (max-width: 768px) {
	#papers-table th:nth-child(3),
	#papers-table td:nth-child(3),
	#papers-table th:nth-child(4),
	#papers-table td:nth-child(4),
	#papers-table th:nth-child(5),
	#papers-table td:nth-child(5) { display: none; }
	#papers-table th:nth-child(6) { width: auto; }
	#papers .level-right { justify-content: center; margin-top: 0.5rem; }
	#papers .level-left { justify-content: center; }
}

/* Unified section title spacing */
.section-title { text-align: center; margin: 2rem 0 1rem 0; }

/* Enforce centered alignment for all section titles */
h2.section-title, .title.section-title { text-align: center !important; }

/* Tighten vertical rhythm around section titles */
.hero + .section .section-title { margin-top: 0.5rem; }
.section .section-title { margin-top: 0.75rem; }

/* Reduce space inside non-hero sections that use hero-body container (e.g., Repeatibility) */
.section .hero-body { padding-top: 0.75rem; padding-bottom: 1.25rem; }

/* Make small sections less tall on mobile and desktop */
.section.is-small { padding-top: 1rem; padding-bottom: 1.5rem; }

/* Mobile width tuning for better readability */
@media screen and (max-width: 768px) {
	.section-container, .container.is-max-desktop { width: 96%; padding: 0 8px; }
	.hero .container.is-max-desktop { width: 96%; }
	.section { padding-left: 0.75rem; padding-right: 0.75rem; }
	.section.is-small .section-container { width: 96%; }
}

/* Ensure table can scroll horizontally on small screens to avoid cramped text */
@media screen and (max-width: 768px) {
	.table-container { overflow-x: auto; }
}

/* Lightbox overlay */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox-overlay.is-active { display: flex; }
.lightbox-content { max-width: 95vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; }
.lightbox-close { position: absolute; top: 12px; right: 12px; color: #fff; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 6px 10px; cursor: pointer; }

/* Center and size Sketchfab embeds */
.sketchfab-embed-wrapper { width: 100% !important; margin-left: auto; margin-right: auto; display: block; }
@media screen and (max-width: 768px) {
	.sketchfab-embed-wrapper { width: 100% !important; }
}

/* Center columns content for the CAD models row */
.section-container .columns.is-mobile > .column { display: flex; justify-content: center; }
.section-container .columns.is-mobile > .column .sketchfab-embed-wrapper { max-width: 540px; width: 100% !important; }
.section-container .columns.is-mobile > .column .sketchfab-embed-wrapper iframe { width: 100% !important; height: 100% !important; }

/* Table column width enforcement */
#papers-table {
  table-layout: fixed;
}

#papers-table th:nth-child(1),
#papers-table td:nth-child(1) {
  width: 12% !important;
}

#papers-table th:nth-child(2),
#papers-table td:nth-child(2) {
  width: 15% !important;
}

#papers-table th:nth-child(3),
#papers-table td:nth-child(3) {
  width: 8% !important;
}

#papers-table th:nth-child(4),
#papers-table td:nth-child(4) {
  width: 65% !important;
}



