.hero-slideshow {
  position: relative;
  width: 100%;
  height: clamp(600px, 90vh, 1000px);
  overflow: hidden;
  margin: -2rem 0 2rem;
  border-radius: 24px;
  background: var(--surface-strong);
  order: 1;
}

.slideshow-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.slideshow-bg.active {
  opacity: 1;
}

/* Vignette and Tint */
.hero-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

[data-theme="dark"] .hero-slideshow::after {
  background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  color: #fff;
  padding: 2rem;
}

.hero-overlay h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 7rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-overlay p {
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 45ch;
  margin: 1.5rem auto 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta .button {
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-cta .button.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.hero-cta .button.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .hero-slideshow {
    height: 75vh;
    border-radius: 12px;
  }
}
