/* HERO */
/*.tmpl-etusivu #page-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}*/
/* Täsmäkorjaus vain etusivulle */
.tmpl-etusivu .page-hero {
  min-height: 100vh;   /* täysi viewport korkeus */
  height: 100vh;       /* pakottaa tarkasti */
  padding: 0;          /* poista ylimääräinen tila */
  position: relative;  /* säilytä absolute video logiikka */
  overflow: hidden;
}
.tmpl-etusivu .page-hero .hero-video-bg {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}
.hero-media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-poster,
.hero-poster img,
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-poster {
  z-index: 0;
}
.hero-poster img {
  display: block;
}
.hero-video-bg {
  z-index: 1;
  opacity: 0;
  transition: opacity .5s ease;
  will-change: opacity;
}
.hero-video-bg.is-ready {
  opacity: 1;
}
.overlay-color {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* background: rgba(0,0,0,.45); */
  pointer-events: none;
}
#page-hero .container {
  position: relative;
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg {
    display: none !important;
  }
}
