/* ==================================================
 * MIDDELMAN – SINGLE PROJECT
 * Opbouw: titel + intro → galerij → verdere uitleg
 * ================================================== */

.mi-project-story {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;

  padding:
    clamp(70px, 6vw, 110px)
    clamp(24px, 5vw, 90px)
    clamp(34px, 3vw, 52px);
}

.mi-project-story__head {
  max-width: 1100px;
  margin: 0;
}

.mi-project-story__label {
  display: block;

  margin: 0 0 20px;
  padding: 0;

  color: var(--mi-dark);

  font-family: var(--mi-body-font);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;

  opacity: .55;
}

html body #page-container .mi-project-story__title {
  max-width: 1000px;

  margin: 0 0 30px;
  padding: 0;

  color: var(--mi-dark) !important;

  font-family: var(--mi-heading-font);
  font-size: clamp(4rem, 6vw, 7rem) !important;
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.035em;
}

.mi-project-story__intro {
  max-width: 840px;

  color: var(--mi-dark);

  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.75;

  opacity: .82;
}

.mi-project-story__intro p {
  margin: 0;
}


/* ==================================================
 * GALERIJ / SLIDER
 * Houd de ruimte tussen intro, media en uitleg compact.
 * ================================================== */

body.single-project .mi-project-slider {
  margin-top: 0;
  margin-bottom: 0;
}

/* De lichte beige huisstijlachtergrond loopt rondom de volledige slidersectie. */
body.single-project #main-content,
body.single-project .et-l--post,
body.single-project .et_builder_inner_content,
body.single-project .et_pb_section:has(.mi-project-slider),
body.single-project .et_pb_section_0 {
  background-color: var(--mi-light, #e9d8b7) !important;
}


/* ==================================================
 * VERDERE UITLEG – ONDER DE GALERIJ
 * ================================================== */

.mi-project-story--body {
  padding-top: clamp(44px, 4.5vw, 72px);
  padding-bottom: clamp(80px, 7vw, 120px);
}

.mi-project-story--body .mi-project-story__body {
  max-width: 760px;
}

.mi-project-story__body {
  color: var(--mi-dark);

  font-size: 1rem;
  line-height: 1.9;

  opacity: .78;
}

.mi-project-story__body p {
  margin: 0 0 1.45em;
}

.mi-project-story__body p:last-child {
  margin-bottom: 0;
}


/* ==================================================
 * RESPONSIVE
 * ================================================== */

@media (max-width: 980px) {
  .mi-project-story {
    padding:
      70px
      clamp(24px, 5vw, 56px)
      32px;
  }

  html body #page-container .mi-project-story__title {
    font-size: clamp(3.6rem, 9vw, 5.6rem) !important;
  }

  .mi-project-story--body {
    padding-top: 48px;
    padding-bottom: 86px;
  }
}

@media (max-width: 767px) {
  .mi-project-story {
    padding: 56px 24px 26px;
  }

  html body #page-container .mi-project-story__title {
    font-size: clamp(3rem, 13vw, 4.5rem) !important;
    line-height: .96;
  }

  .mi-project-story__intro {
    font-size: 1.08rem;
  }

  .mi-project-story--body {
    padding-top: 38px;
    padding-bottom: 68px;
  }
}
