/* ===========================================
   KEN BURNS SLIDESHOW COMPONENT
   Static CSS - keyframes generated per-instance
   =========================================== */

.block-kenburns {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.block-kenburns .kb-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.block-kenburns .kb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-kenburns .kb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Height variants */
.block-kenburns.kb-height-400 { height: 400px; }
.block-kenburns.kb-height-500 { height: 500px; }
.block-kenburns.kb-height-600 { height: 600px; }
.block-kenburns.kb-height-vh50 { height: 50vh; }
.block-kenburns.kb-height-vh75 { height: 75vh; }
.block-kenburns.kb-height-vh100 { height: 100vh; }

/* No border-radius variant */
.block-kenburns.kb-no-radius {
  border-radius: 0;
}

/* H1 overlay on hero - only applies when kenburns is present */
main:has(.block-kenburns) {
  position: relative;
}

main:has(.block-kenburns) > h1:first-of-type {
  position: absolute;
  top: 450px;
  left: 50px;
  z-index: 10;
  color: #fff;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  margin: 0;
  padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .block-kenburns {
    height: 350px;
    border-radius: 0;
  }

  main:has(.block-kenburns) > h1:first-of-type {
    top: 300px;
    left: 30px;
    font-size: 1rem;
  }
}
