/*
 * Styles for the one section that has no Elementor template to borrow from (the picture band).
 * Colours and type come from the Elementor kit variables (post-5.css) so they match the rest of the site.
 */

/* ---- Picture band ---- */
.acm-gallery {
  padding: 40px 20px;
}
.acm-gallery__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container-max-width, 1140px);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(var(--acm-gallery-columns, 1), 1fr);
}
.acm-gallery__list[data-count="2"] {
  --acm-gallery-columns: 2;
}
.acm-gallery__list[data-count="3"] {
  --acm-gallery-columns: 3;
}
.acm-gallery__list img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
}
@media (max-width: 767px) {
  .acm-gallery__list {
    --acm-gallery-columns: 1;
  }
}

/* ---- Blog post (template 2717) ---- */
/* Space before the footer. The sidebar ends level with the article, so this is also the gap under the card. */
.elementor-2717 .elementor-element.elementor-element-ce7e97f {
  --padding-bottom: 32px;
}
@media (max-width: 1171px) {
  /*
   * Below the 1140px box plus a 16px gutter each side, keep the article off the screen edges (and the post-date
   * list's -8px margin inside the page).
   */
  .elementor-2717 .elementor-element.elementor-element-ce7e97f {
    --padding-left: 16px;
    --padding-right: 16px;
  }
}
@media (max-width: 767px) {
  .elementor-2717 .elementor-element.elementor-element-ce7e97f {
    --padding-bottom: 24px;
  }
}
/*
 * Blog post sidebar: the blue card wraps its posts instead of stretching to the article's height, and sticks just
 * below the sticky header while it sits beside the article (881px and up). --acm-sticky-header is the stuck
 * header's bottom edge, measured by STICKY_HEADER_OFFSET in components/theme/assets.ts, because the header's
 * height follows its logo and changes with the window width.
 */
@media (min-width: 881px) {
  .elementor-2717 .elementor-element.elementor-element-084fe3f {
    align-self: flex-start;
    position: sticky;
    top: calc(var(--acm-sticky-header, 120px) + 10px);
  }
}

/* The shortcode wrapper the theme used around forms kept a stray <br>; keep the form flush with its heading. */
.elementor-shortcode > form.forminator-custom-form {
  display: block;
}

/* ---- Header (template 24) ---- */
/*
 * The Bosch badge hung 35px above the red bar, over the contact bar, and the child theme only shrank it to 55px
 * once the header was stuck between 1200 and 1440px. It now sits inside the red bar at that size at every width
 * above the phone layout, stuck or not; phones already keep it inside (60px, no offset).
 */
.elementor-24 .elementor-element.elementor-element-46b3715 {
  margin-top: 0;
}
@media (min-width: 768px) {
  .elementor-24 .elementor-element.elementor-element-46b3715 img {
    max-width: 55px;
  }
}

/* ---- Blog article (template 2717) ---- */
/*
 * The article is the CMS editor's HTML inside the theme-post-content widget. The widget only sets the paragraph
 * type (Inter 16px, grey), so headings, lists, links and pictures fell back to the theme reset. These give the
 * article the site's palette: navy headings with a red accent, red links and bullets, rounded pictures.
 */
.elementor-2717 .elementor-widget-theme-post-content article > * {
  margin: 0 0 16px;
}
.elementor-2717 .elementor-widget-theme-post-content article > :last-child {
  margin-bottom: 0;
}
.elementor-2717 .elementor-widget-theme-post-content p,
.elementor-2717 .elementor-widget-theme-post-content li {
  line-height: 26px;
}
.elementor-2717 .elementor-widget-theme-post-content h2,
.elementor-2717 .elementor-widget-theme-post-content h3,
.elementor-2717 .elementor-widget-theme-post-content h4 {
  color: var(--e-global-color-e141ef3);
  font-family: var(--e-global-typography-153cc1a-font-family), Sans-serif;
  font-weight: 600;
  margin-top: 36px;
}
.elementor-2717 .elementor-widget-theme-post-content h2 {
  font-size: 28px;
  line-height: 34px;
}
.elementor-2717 .elementor-widget-theme-post-content h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--e-global-color-514877b);
}
.elementor-2717 .elementor-widget-theme-post-content h3 {
  font-size: 22px;
  line-height: 28px;
  margin-top: 28px;
}
.elementor-2717 .elementor-widget-theme-post-content h4 {
  font-size: 18px;
  line-height: 24px;
  margin-top: 24px;
}
.elementor-2717 .elementor-widget-theme-post-content strong {
  color: var(--e-global-color-e141ef3);
}
.elementor-2717 .elementor-widget-theme-post-content a {
  color: var(--e-global-color-514877b);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.elementor-2717 .elementor-widget-theme-post-content a:hover {
  color: var(--e-global-color-e141ef3);
}
.elementor-2717 .elementor-widget-theme-post-content ul,
.elementor-2717 .elementor-widget-theme-post-content ol {
  padding-left: 24px;
}
.elementor-2717 .elementor-widget-theme-post-content li {
  margin-bottom: 8px;
}
.elementor-2717 .elementor-widget-theme-post-content li::marker {
  color: var(--e-global-color-514877b);
}
.elementor-2717 .elementor-widget-theme-post-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 7px;
  margin: 24px 0;
}
@media (max-width: 767px) {
  .elementor-2717 .elementor-widget-theme-post-content h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .elementor-2717 .elementor-widget-theme-post-content h3 {
    font-size: 20px;
    line-height: 26px;
  }
  .elementor-2717 .elementor-widget-theme-post-content img {
    max-height: 300px;
  }
}

/* ---- Breadcrumbs (components/cms/blocks/Hero.tsx) ---- */
/* The pill hugs its text at the start of the banner. */
.acm-breadcrumbs {
  display: flex;
  align-self: flex-start;
  max-width: 100%;
}
/* Blog post banners centred their title; they now start at the left like every other page's banner. */
.elementor-2717 .elementor-element.elementor-element-20868c7.elementor-element {
  --align-self: flex-start;
  text-align: start;
}
@media (max-width: 767px) {
  /* Other banners give the title the full width on phones; the post template kept it at 58%. */
  .elementor-2717 .elementor-element.elementor-element-20868c7 {
    --container-widget-width: 100%;
    width: 100%;
    max-width: 100%;
  }
}
