/* ========== Scroll container with hero + video overlay ========== */
#video-scroll-container {
  position: relative;
  height: 200vh;
}

#video-sticky-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Hero content layer */
#hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

#hero-content > .container {
  width: 100%;
}

#video-sticky-frame.phase-dark #hero-content,
#video-sticky-frame.phase-video #hero-content,
#video-sticky-frame.phase-exit #hero-content {
  opacity: 0;
  pointer-events: none;
}

/* Video overlay layer */
#video-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

#video-sticky-frame.phase-dark #video-overlay-layer {
  opacity: 1;
}

#video-sticky-frame.phase-video #video-overlay-layer {
  opacity: 1;
  pointer-events: auto;
}

#video-sticky-frame.phase-exit #video-overlay-layer {
  opacity: 1;
  pointer-events: none;
}

/* Video element */
#scroll-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1.0),
              transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

#video-sticky-frame.phase-video #scroll-video {
  opacity: 1;
  transform: scale(1);
}

#video-sticky-frame.phase-exit #scroll-video {
  opacity: 1;
  transform: scale(1);
}

/* Video label */
#video-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

#video-sticky-frame.phase-video #video-label,
#video-sticky-frame.phase-exit #video-label {
  opacity: 0;
}

/* Video controls */
#video-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

#video-sticky-frame.phase-video #video-controls {
  opacity: 1;
  pointer-events: auto;
}

#video-unmute-btn {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 24px;
  border-radius: 28px;
  font-size: 0.9rem;
  font-family: 'Google Sans', sans-serif;
  cursor: pointer;
  transition: background 0.25s ease;
  letter-spacing: 0.02em;
}

#video-unmute-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========== Mobile: no animation, simple layout ========== */
@media (max-width: 768px) {
  #video-scroll-container {
    height: auto;
  }

  #video-sticky-frame {
    position: relative;
    height: auto;
  }

  #hero-content {
    position: relative;
    height: auto;
    padding: 60px 0 20px;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none;
  }

  #video-sticky-frame.phase-dark #hero-content,
  #video-sticky-frame.phase-video #hero-content,
  #video-sticky-frame.phase-exit #hero-content {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #video-overlay-layer {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    background: #000;
    padding: 20px 0;
  }

  /* Authors stacked vertically on mobile */
  .author-block {
    display: block;
    margin-bottom: 8px;
  }

  #video-label {
    display: none;
  }

  #scroll-video {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 1;
    transform: none;
    object-fit: contain;
    transition: none;
  }

  #video-controls {
    display: none;
  }
}

/* ========== General ========== */
.alarm{
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  color: red;
  font-size: 15pt;
  margin-top: 0px;
  margin-bottom: 30px;
}

.emoji-image {
  display: inline-block;
  vertical-align: middle;
  margin: 0 -20px;
  margin-top: -40px;
  height: 150px;
  width: auto
}

.emoji-content {
  display: inline-block;
  vertical-align: middle;
  margin: 0 -5px;
  margin-top: -4px;
  height: 40px;
  width: 40px;
}

/* Author affiliation under each name */
.author-affiliation {
  font-size: 0.9em;
  color: #555;
  font-weight: 400;
}

.author-block {
  display: inline-block;
  vertical-align: top;
  text-align: center;
}

.hero-abstract {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  background: none !important;
}

.image-container {
  text-align: center;
  margin: 20px auto;
  max-width: 100%;
}

/* Caption styling */
figcaption {
  text-align: justify;
  font-size: 1rem;
  color: #555;
  margin-top: 5px;
}

/* Caption styling */
.zoomcaption {
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 1000;
  color: #0c84b3;
  margin-bottom: 20px;
}

/* Image styling */
.clickable-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 2px 2px 10px 3px #00000030;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.clickable-image:hover {
  transform: scale(1.05);
}

/* Full-screen modal */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.fullscreen-modal img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0px 0px 10px #fff;
  border-radius: 0;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

strong{
  font-size: larger;
  color: rgb(221, 42, 42) !important;
}

.heading{
  font-size: larger;
  color: rgb(243, 92, 23) !important;
  font-family: 'Google Sans', sans-serif;
  text-transform: none;
  display: inline;
  font-weight: 1000;
}

.conference{
  font-size: 28px;
  color: rgb(9, 63, 128) !important;
  font-family: 'Google Sans', sans-serif;
  text-transform: none;
  display: block;
  font-weight: 1000;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.content a{
  color: hsl(204, 86%, 53%) !important;
  font-style: italic;
}

.content a:hover {
  color: hsl(204, 86%, 53%) !important;
  text-decoration: underline;
  font-style: italic;
}
