.banner--primary {
  grid-template: "container";
  align-items: baseline;
  overflow: initial;
  transform: none;
  left: 0;
  position: relative;
  width: 100vw;
  z-index: 0;
}

.banner--primary > * {
  grid-area: container;
}
@media (min-width: 620px) {
  .banner--primary {
  display: block;
  }
}

@media (min-width: 768px) {
  .banner--primary {
    display: grid;
  }
}

.banner--primary .banner__content {
  background-color: transparent;
  color: inherit;
}

.banner--primary .banner__content .field--name-localgov-title {
  --banner-text-alignment: center;
  font-size: 48px;
  font-family: var(--banner-font-family);
  line-height: 48px;
  font-weight: var(--banner-heading-font-weight);
  text-align: var(--banner-text-alignment);
  margin-bottom: 2rem;
}

@media (min-width: 1200px) {
  .banner--primary .banner__content .field--name-localgov-title::before {
    font-size: 24px;
    margin-bottom: 3rem;
  }
}

.banner--primary .banner__content .field--name-localgov-title::after {
  background-image: url('../assets/images/plusses.png');
  background-size: auto;
  background-repeat: no-repeat;
  content: "";
  position: absolute;
  left: -125px;
  top: -10px;
  height: 480px;
  width: 135px;
  z-index: 3;
}

.banner--primary .banner__content .field--name-localgov-subsites-banner-text {
  line-height: 24px ;
  text-align: center;
  font-size: 16px;
}

@media (min-width: 768px) {
  .banner--primary .banner__content .field--name-localgov-subsites-banner-text {
    font-family: var(--banner-font-family);
    font-weight: var(--banner-font-weight);
    text-align: var(--banner-text-alignment);
    width: 85%;
  }
}

@media (min-width: 1200px) {
  .banner--primary .banner__content .field--name-localgov-subsites-banner-text {
    font-size: var(--banner-font-size);
    line-height: 36px;
    width: auto;
  }
}

.path-frontpage .banner__image img {
  width: 100%;
  min-height: 50vh;
}

.banner--primary .banner__content {
  margin: 0;
  max-width: 100%;
}

@media screen and (min-width: 768px) {

  .path-frontpage .banner__image img {
    width: 100%;
    min-height: 70vh;
    object-fit: cover;
  }

  .banner--primary .field--name-localgov-image:before {
    background: linear-gradient(90deg,
              rgba(255,255,255,0.75) 0%, 
              rgba(212,212,212,0.75) 30%, 
              rgba(153,153,153,0) 51%
    );
    content: '';
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
  }

  .banner--primary .banner__content .field--name-localgov-title {
    --banner-text-alignment: left;
    font-size: var(--banner-title-size);
    line-height: var(--banner-heading-line-height);
  }

  .banner {
    align-items: initial;
  }
  
  .banner--primary .banner__content {
    justify-content: center;
    text-align: center;
    --banner-content-width: 640px;
    z-index: 2;
    bottom: 0;
    width: calc(100% - 30px);
    left: 50%;
    transform: translateY(50%) translateX(-50%);
    /* margin-bottom: 152px; */
    max-width: var(--banner-content-width);
    background-color: transparent;
    color: var(--color-text);
  }

  .banner-wrapper {
    /* width: 75rem; */
    width: 100%;
    max-width: var(--width-mega);
    margin: 0 auto;
    display: grid;
    z-index: 2;
  }

  /* This is the default position */
  .banner--primary.position- {
    display: block;
  }
  .banner--primary .position- {
    grid-area: auto;
    margin: calc(var(--banner-content-margin) * -1) auto var(--banner-content-margin);
    transform: none;
    left: 0;
  }

  .banner .position-right {
    place-self: center right;
    /* margin: 1rem; */
    position: relative;
    transform: none;
    left: 0;
    transform: translateX(-20%);
    margin-bottom: 0;
  }

  .banner .position-left {
    place-self: center left;
    /* margin: 1rem; */
    position: relative;
    transform: none;
    left: 0;
    margin-bottom: 0;
    z-index: auto;
  }

  .banner .position-top {
    place-self: start center;
    /* margin: 1rem; */
    width: auto;
    left: 0;
    transform: none;
    position: relative;
  }

  .banner .position-bottom {
    place-self: end center;
    /* margin: 1rem; */
  }
}

.banner .has-mobile-image .field--name-field-lbhf-mobile-image {
  display: block;
}

.banner .has-mobile-image .field--name-localgov-image {
  display: none;
}

@media (min-width: 620px) {
  .banner .has-mobile-image .field--name-field-lbhf-mobile-image {
    display: none;
  }

  .banner .has-mobile-image .field--name-localgov-image {
    display: block;
  }
} 

.banner--secondary {
  margin-top: 1rem;
}
