
.hero {
  position: relative;
  min-height: 80vh;
  height: 100vh;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: #f5f5f7;
  overflow: hidden;
  z-index: 0;
}

.hero_videos {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
  transform: translateZ(0);
}

.hero_media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero_scrim {
  position: absolute;
  inset: 0;
  background: transparent;
  display: none;
  z-index: 0;
}

.hero_inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px;
}

.hero, .hero_videos, .hero_media {
  position: relative;
  z-index: 0;
}

.hero_videos {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }
  
  .hero_media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
  }
  
  .hero_media.is-active {
    opacity: 1;
    z-index: 1;
  }
  
  .dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .dot.is-active {
    background: #fff;
  }

@media (max-width: 980px) {
  .hero {
    height: 100vh;
    min-height: 320px;
  }
  .hero_videos {
    height: 100%;
  }
  .hero_media { object-position: center top; }
}
