/* --- Overlay (Videoikkuna) --- */
#video-overlay {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  padding-top: 9rem;
  padding-bottom: 1rem; /* lisää ylä- ja alareunaa */
}


#video-overlay.hidden {
  display: none;
}




/* --- Iframe --- */
.video-frame {
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  position: relative;
  margin:auto;
}

#video-frame {
  width: 100%;
  height: 100%;
  border: none;
}
/* --- Sulkunappi --- */
#close-video {
  position: absolute;
  top: -4rem;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
}

#close-video svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  transition: stroke 0.3s ease;
}

#close-video:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
}

#close-video:hover svg {
  stroke: #ff3b3b;
}



/* --- Video info --- */
.video-info {
    color: white;
    text-align: center;
    margin-top: 1.5rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}


.video-info h3 {
  font-size: 1.3rem;
  margin-bottom:0px;
}

.video-info p {margin-top:3px;


max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}




/* --- Navigointinuolet --- */
.video-navigation {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.nav-arrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-weight: bold;
  font-family: sans-serif !important;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  color: #0091a5;
}

.nav-arrow.hidden {
  display: none !important;
}

.prev-arrow {
  position: absolute;
  left: 10px;
}

.next-arrow {
  position: absolute;
  right: 10px;
}

/* --- Responsiivisuus --- */
@media (max-width: 768px) {
  .video-navigation {
    position: static;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
  }

  .prev-arrow,
  .next-arrow {
    position: static;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .nav-arrow {
    font-size: 2rem;
    padding: 0;
  }
}

.no-scroll,
body.no-scroll,
html.no-scroll,
.bombo-wrapper.no-scroll,
.bombo-app-content.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
}