video {
  border-radius: 20px;
}

#slider-value {
  font-size: 1rem;
  font-weight: bold;
}

.teaser-video-container {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teaser-video-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teaser-video-wrapper video {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 20px;
  border: 0.2rem solid black;
}

/* Ensure teaser image spans width */
.teaser-video-wrapper img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 20px;
}


.button {
  white-space: normal; /* allow multiline text */
  height: auto; /* adjust height to fit content */
  padding: 0.5rem 1rem; /* adjust padding to maintain spacing */
  border-width: 1px; /* adjust border width */
}


.button.is-active {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.7);
  outline: none !important;
  box-shadow: none !important;
}

.button.is-active-teaser {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.7);
  outline: none !important;
  box-shadow: none !important;
}

.button:focus, .button:active {
  outline: none !important;
  box-shadow: none !important;
}

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

/* Widen teaser section container */
.hero.teaser .container.is-max-desktop {
  max-width: 1400px; /* expand from Bulma's default */
  width: 100%;
}


.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;
  margin-left: 1rem;
}

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


#carousel-div.carousel.results-carousel {
  overflow: hidden;
  height: auto;
  width: 80%; /* Set to 80% of parent container */
  margin: 0 auto; /* Center horizontally */
  display: flex;
  justify-content: center;
}

.results-carousel { overflow: hidden; }
.results-carousel .item {
  margin: 0; /* prevent width overflow that causes bleed */
  overflow: hidden;
  padding: 0;
  font-size: 0;
  height: 100%;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.results-carousel img,
.results-carousel video {
  margin: 0;
  height: 48vh; /* reduced ~20% from 60vh */
  object-fit: contain;
  max-width: 100%;
  border: 0; /* remove black edges */
}

/* Fallback carousel styles (if bulma-carousel fails) */
/* simple fallback carousel (JS-managed) */
#carousel-div .item { display: none; }
#carousel-div .item.is-active { display: block; }


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

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


.fullwidth-gray-bg {
  background-color: #f5f5f5;
}


/* video gri */ 
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

.video-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  overflow: hidden;
}

.synced-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 0.1rem solid black;
}

.video-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 1000;
  text-align: center;
  color: #333;
}



/* results section */

.model-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.model-buttons .button {
  flex-grow: 1;
  min-width: calc(50% - 8px);
  margin: 0;
  border-radius: 4px !important;
}

.video-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.video-caption {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Ensure the box heights match */
@media screen and (min-width: 769px) {
  .columns.is-variable.is-4 {
    display: flex;
  }
  
  .columns.is-variable.is-4 > .column {
    display: flex;
    flex-direction: column;
  }
  
  .columns.is-variable.is-4 > .column > .box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
}

/* collage: grid-based for perfect rectangle */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* default: 3 columns */
  grid-auto-rows: 6.4px; /* shrink overall height by additional 20% */
  gap: 12px;
  grid-auto-flow: dense;
}

/* Editing collage: 2 columns (each tile spans 4 of 8) */
.collage.collage--editing {
  grid-template-columns: repeat(12, 1fr); /* 3 columns (each tile spans 4) */
}

/* Editing: make landscape tiles a bit shorter */
.collage.collage--editing .collage-item.landscape {
  grid-column: span 4;
  /* grid-row: span 12; */
  grid-row: span 10;
}

/* Editing: make portrait tiles slightly taller */
.collage.collage--editing .collage-item.portrait {
  grid-column: span 4;
  /* grid-row: span 32; */
  grid-row: span 20;
}

/* base card */
.collage-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px; /* rounded corners on each tile */
}

/* Landscape: 3 columns wide, base height */
.collage-item.landscape {
  grid-column: span 4; /* 3 per row */
  grid-row: span 13;   /* base height */
}

/* Wide Portrait: 3 columns wide, 2x height of landscape */
.collage-item.wide-portrait {
  grid-column: span 4; /* align with landscape width */
  grid-row: span 26;   /* make 'span 30' to be exactly 2x landscape height */
}

/* Portrait: 6 columns wide, 2x height of landscape */
.collage-item.portrait {
  grid-column: span 2; /* align with landscape width */
  grid-row: span 26;   /* make 'span 30' to be exactly 2x landscape height */
}

/* Square: same width as landscape, intermediate height */
.collage-item.square {
  grid-column: span 4;
  grid-row: span 20; /* approx square tile */
}

/* Make mobile/tablet responsive */
@media screen and (max-width: 1023px) {
  .collage { grid-template-columns: repeat(8, 1fr); }
  .collage-item { grid-column: span 8; } /* 1 column on tablet */
}
@media screen and (max-width: 640px) {
  .collage { grid-template-columns: repeat(4, 1fr); }
  .collage-item { grid-column: span 4; } /* 1 column on mobile */
}


/* Default image style */
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  border: 0;
  transition: transform 160ms ease;
}

/* Editing section: show ~80% (allow ~20% crop) and keep rounded corners via parent */
.collage.collage--editing .collage-item img {
  object-fit: cover; /* slight crop by default */
  transform: scale(1.0526); /* ~95% visible when not hovered */
  transform-origin: center center;
}

.collage.collage--editing .collage-item:hover img {
  transform: scale(1); /* zoom out to show full image */
  object-fit: contain;
}

/* Editing prompt overlay */
.collage.collage--editing .prompt-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  pointer-events: none; /* don't block link clicks */
}

.collage.collage--editing .collage-item:hover .prompt-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* No height crop for landscape; keep at least 75% width */
.collage-item.landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No width crop for portrait; keep at least 75% height */
.collage-item.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-item img {
  transform: scale(1.0526); /* default ~95% visible */
}
.collage-item:hover img {
  transform: scale(1); /* zoom out to show full image */
}