/* HERO base */
.hero {
  --max-width: 1100px;
  --max-height-desktop: 420px;  /* keep headline + image in first fold */
  --max-height-mobile: 45vh;

  margin: 0 auto;
  padding: clamp(12px, 2vw, 20px);
  max-width: var(--max-width);
}

/* Title above image (common editorial pattern) */
.hero-inner {
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 6px;
}
.hero-sub {
  color: #6b7280;
  margin: 0;
}

/* Media wrapper keeps a wide, shallow look */
.hero-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* Image behavior */
.hero-img {
  display: block;
  width: 100%;
  height: auto;            /* natural aspect ratio from file */
  object-fit: cover;
}

/* style the image inside the section */


/* Cap height so text remains visible quickly */
@media (min-width: 768px) {
  .hero-media { max-height: var(--max-height-desktop); }
  .hero-img   { height: min(42vh, var(--max-height-desktop)); width: 100%; object-fit: cover; }
}
@media (max-width: 767.98px) {
  .hero-media { max-height: var(--max-height-mobile); }
  .hero-img   { height: var(--max-height-mobile); width: 100%; object-fit: cover; }
}

/* Optional caption */
.hero-cap {
  position: absolute;
  inset: auto 10px 10px 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* Intro block after hero */
.intro {
  margin: 18px auto 0;
  max-width: var(--max-width);
  padding: 0 clamp(12px, 2vw, 20px);
}

section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}