/* ==== Macebearers + Banner/Name sections – layout ==== */

#macebearers {
  background-color: #fff;
  margin-top: 36px;
  margin-right: 40px;
}

/* Contain the content nicely on large screens */
.thanks-mace,
.mace {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 24px;
  box-sizing: border-box;
}

.thanks-mace h1,
.banner-carrier h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Core flex layout for all the grids */
.bearer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;          /* space between columns */
  align-items: flex-start;
}

/* Each column */
.bearer-wrap .col {
  box-sizing: border-box;
  flex: 1 1 calc(33.333% - 16px);  /* 3-up on desktop */
  min-width: 260px;                /* prevents absurdly skinny columns */
}

/* Portrait images fluid */
.thanks-mace img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

/* Tighten type a bit */
.thanks-mace h2,
.banner-carrier h2 {
  margin: 0.5rem 0 0.25rem;
}
.thanks-mace h3,
.thanks-mace h4,
.banner-carrier h3,
.banner-carrier h4 {
  margin: 0 0 0.25rem;
}
.thanks-mace p,
.banner-carrier p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

/* "About the Mace" text block */
.mace p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ==== Breakpoints ==== */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .bearer-wrap .col {
    flex: 1 1 calc(50% - 16px);
  }
}

/* Mobile: single column stack */
@media (max-width: 768px) {
  /* Kill that right margin so it doesn't shove off-screen */
  #macebearers {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .thanks-mace,
  .mace {
    padding: 0 16px;
  }

  .bearer-wrap {
    gap: 16px;
  }

  .bearer-wrap .col {
    flex: 1 1 100%;
    min-width: 0;
  }

  .thanks-mace h1,
  .banner-carrier h1 {
    font-size: 1.6rem;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {
  .thanks-mace,
  .mace {
    padding: 0 12px;
  }
}