/* Hero (pages/slider.php): always exactly one screen tall, content centred.
   Photo and text scale with the screen height, so the whole hero fits on
   short laptop screens and still fills tall monitors. */
#home.slider-style-5 {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding-top: clamp(16px, 3vh, 48px) !important;
  padding-bottom: clamp(16px, 3vh, 48px) !important;
}

#home.slider-style-5 .thumbnail {
  margin-bottom: clamp(6px, 1.6vh, 18px);
  padding: clamp(4px, 0.9vh, 10px);
}

#home.slider-style-5 .thumbnail img {
  width: clamp(110px, 32vh, 340px);
  max-width: 62vw;
}

#home.slider-style-5 h1 {
  font-size: clamp(30px, 5.4vh, 56px);
}

#home.slider-style-5 .cd-headline span,
#home.slider-style-5 .cd-headline .cd-words-wrapper b {
  font-size: clamp(20px, 3.3vh, 34px);
}

#home.slider-style-5 .button-area a {
  margin-top: clamp(10px, 2.4vh, 28px);
}

/* Very short screens (phones turned sideways) */
@media only screen and (max-height: 480px) {
  #home.slider-style-5 .thumbnail img {
    width: 28vh;
    min-width: 90px;
  }

  #home.slider-style-5 h1 {
    font-size: 26px;
  }

  #home.slider-style-5 .cd-headline span,
  #home.slider-style-5 .cd-headline .cd-words-wrapper b {
    font-size: 18px;
  }

  #home.slider-style-5 .button-area a {
    margin-top: 8px;
  }
}

/* Phones and tablets: the fixed top bar (60px) covers the top of the hero */
@media only screen and (max-width: 767px) {
  #home.slider-style-5 {
    padding-top: calc(60px + clamp(8px, 2vh, 24px)) !important;
  }

  #home.slider-style-5 h1 {
    margin-bottom: 4px;
  }
}
