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


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

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

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


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


/* 2×2 video grid styles */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-wrap {
  position: relative;
  width: 100%;
  /* 16:9 aspect ratio */
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
  border-radius: 6px;
}

.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* use 'contain' to letterbox */
  display: block;
}

.video-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.interpolation-panel .column {
  margin-bottom: 1rem; /* space between rows on mobile */
}

/* Two video-group columns side-by-side on desktop */
.video-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;            /* space between the two sets */
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
}

/* each 2x2 block */
.video-group {
  flex: 1 1 45%;        /* roughly half width on desktop */
  max-width: 600px;     /* optional limit */
}

/* subtitle under each main title */
.video-group .subtitle {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #666;
  text-align: center;
}

/* stack vertically on small screens */
@media (max-width: 900px) {
  .video-section {
    flex-direction: column;
    align-items: center;
  }
  .video-group {
    width: 100%;
    max-width: 700px;
  }
}

/* Single, centered video block */
.single-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* control size here */
  max-width: 600px;       /* <-- change this to control width */
  margin: 2rem auto;      /* centers it horizontally and adds vertical spacing */
  width: 100%;
  text-align: center;     /* centers the title text */
}

.single-video .video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  overflow: hidden;
  border-radius: 6px;
}

.single-video .video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-video .video-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Tabs & content */
.results-tabs { margin-bottom: 1rem; }
.results-tabs .tablist { display:block; }

/* hide by Bulma class 'is-hidden' or our own */
.tab-content { display: block; }
.tab-content.is-hidden { display: none; }

/* small tweak to keep tab controls keyboard-focus-friendly */
.results-tabs li a { cursor: pointer; }

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* outer wrapper: center horizontally, no extra vertical spacing */
.scaled-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;   /* don't force full viewport height */
  width: 100%;
  margin: 20px;                 /* remove extra outer margins */
  padding: 0;
  box-sizing: border-box;
}

/* control the displayed width (layout-based scaling) */
.scaled-content {
  /* Set the target width as a percentage of the parent's width.
     Change this value to control the "scale" (e.g. 80% = scaled to 80%).
     Using CSS var makes it easy to tweak in one place. */
  --image-width-percent: 70%;   /* <-- change this to desired X% (e.g. 60%, 100%) */

  width: var(--image-width-percent);
  max-width: 1100px;           /* optional maximum to avoid huge images on wide screens */
  margin: 0 auto;              /* center within the flex item */
  box-sizing: border-box;
}

/* keep image & overlay sizing fluid */
.interactive-image-wrap {
  position: relative;
  width: 100%;     /* full width of scaled-content */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.interactive-image {
  display: block;  /* removes inline-image baseline whitespace */
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 8px; /* optional */
}

/* SVG overlay scales with the image because it's absolutely positioned inside the wrap */
.hotspot-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* preview & modal rules unchanged... */

/* Ellipses: invisible but accept pointer events */
.hotspot-ellipse {
  fill: transparent;            /* invisible */
  stroke: transparent;          /* invisible; set to a visible color while tuning */
  stroke-width: 0.8;
  cursor: pointer;
  pointer-events: all;          /* allow mouse events */
  transition: transform .12s ease, stroke .12s ease;
  outline: none;
}

/* Focus/hover styling (optional subtle highlight) */
.hotspot-ellipse:hover,
.hotspot-ellipse:focus {
  stroke: rgba(255,255,255,0.8); /* subtle highlight on hover/focus (remove or tweak) */
  stroke-width: 1.2;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

/* If you want a visible debug overlay while tuning, temporarily use: */
/* .hotspot-ellipse { fill: rgba(255,0,0,0.12); stroke: rgba(255,0,0,0.6); } */


/* keep the preview and modal styles from the previous code (unchanged) */
.video-preview { position:absolute; width:480px; max-width:60%; padding:6px; background:#111; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,0.45); transform: translate(-50%,-120%); z-index:10; pointer-events:none; overflow:hidden; }
.video-preview video { width:100%; display:block; border-radius:6px; object-fit:cover; }
.is-hidden{ display:none !important; }
.video-modal { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; }
.video-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.6); }
.video-modal-content { position:relative; width:min(1100px,95%); max-height:90vh; background:#fff; border-radius:10px; padding:1rem; z-index:1001; overflow:auto; }
.modal-close { position:absolute; right:10px; top:6px; background:transparent; border:none; font-size:28px; cursor:pointer; }
.modal-video-wrap { width:100%; padding-bottom:56.25%; position:relative; background:#000; border-radius:6px; overflow:hidden; }
.modal-video-wrap video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.modal-caption { margin-top:.75rem; font-size:.95rem; color:#333; text-align:center; }
