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

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

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

.lift4d {
  font-variant: small-caps;
  font-weight: 600;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

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

.teaser-placeholder,
.visualization-placeholder {
  width: 100%;
  border: 2px dashed #c9c9c9;
  border-radius: 10px;
  background: #fafafa;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  padding: 1rem;
}

.teaser-placeholder {
  aspect-ratio: 16 / 7;
}

.visualization-placeholder {
  aspect-ratio: 16 / 9;
}

.contribution-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.contribution-section + .contribution-section {
  border-top: 1px solid #eee;
}

.contribution-number {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  margin-right: 0.5rem;
  background: hsl(204, 86%, 53%);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  vertical-align: middle;
  font-family: 'Google Sans', sans-serif;
}

.contribution-title {
  font-family: 'Google Sans', sans-serif;
}

/* ---------- Lift4D 4D panels (slider) ---------- */
.lift4d-slider {
  position: relative;
  width: 100%;
}

.lift4d-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lift4d-slider-track::-webkit-scrollbar { display: none; }

.lift4d-slider-track .lift4d-panel {
  flex: 0 0 33.333%;          /* 3 panels visible on desktop */
  scroll-snap-align: start;
  padding: 0 0.6rem;
  box-sizing: border-box;
}
@media (max-width: 1100px) {
  .lift4d-slider-track .lift4d-panel { flex: 0 0 50%; }
}
@media (max-width: 700px) {
  .lift4d-slider-track .lift4d-panel { flex: 0 0 100%; }
}

.lift4d-prev,
.lift4d-next {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Google Sans', sans-serif;
}
.lift4d-prev:hover,
.lift4d-next:hover { background: #fff; }
.lift4d-prev { left: 0.25rem; }
.lift4d-next { right: 0.25rem; }

.lift4d-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.lift4d-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.15s;
}
.lift4d-dot.active {
  background: hsl(204, 86%, 53%);
}

/* ---------- stage = canvas + video, can flex side-by-side when video expanded ---------- */
.lift4d-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.lift4d-canvas-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.lift4d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.lift4d-canvas:active { cursor: grabbing; }

/* Collapsed video: floating thumbnail at top-left of the canvas. */
.lift4d-overlay-video {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28%;
  max-width: 360px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  cursor: zoom-in;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  background: #000;
}
.lift4d-overlay-video:hover {
  border-color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* Expanded: video moves out of overlay and sits as a flex sibling of the canvas. */
.lift4d-stage.expanded { align-items: stretch; }
.lift4d-stage.expanded .lift4d-canvas-wrap { flex: 1 1 0; min-width: 0; }
.lift4d-stage.expanded .lift4d-overlay-video {
  /* Force out of overlay — !important wins over the base absolute rule even
     under aggressive specificity. */
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  cursor: zoom-out;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.lift4d-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
}

.lift4d-play {
  border: 1px solid #ccc;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.lift4d-play:hover { background: #f0f0f0; }

.lift4d-frame { flex: 1; }

.lift4d-tracks {
  white-space: nowrap;
  user-select: none;
}
