#headerImage .bx-wrapper {
  position: relative;
}
#headerImage {
  position: relative;
  float: left;
  width: 100%;
  z-index: 0;
  overflow: hidden;
  margin-top: -127px;
}
#headerImage::before {
  content: "";
  background: url(../images/headerpic-after.jpg) no-repeat center bottom;
  width: 100%;
  height: 81px;
  position: absolute;
  bottom: 0;
  left: 0;
  background-size: 100%;
  z-index: 9999;
}
#headerImage ul li {
  overflow: hidden;
  width: 100% !important;
}
#headerImage li {
  float: left;
  width: 100%;
}
#headerImage .bx-controls .bx-pager-item:last-child a.bx-pager-link {
  margin-right: 0;
}
.main #headerImage .bx-viewport {
  max-height: 525px;
}

#headerImage .bx-controls.bx-has-pager {
    position: absolute;
    bottom: 71px;
    z-index: 9999;
    float: left;
    width: 510px;
    margin-left: calc(50% - 255px);
}
.main #headerImage .bx-controls.bx-has-pager {
  display: none;
}
#headerImage .bx-controls a.bx-pager-link {
    height: 7px;
    width: 78px;
    float: left;
    text-indent: -100px;
    background: #fff;
    overflow: hidden;
    margin-right: 30px;
}
#headerImage .bx-controls a.bx-pager-link.active {
  background: #a40024;
}
/*#headerImage .bx-pager-item:nth-child(3) a.bx-pager-link {
	margin-right:0;
}*/

.home #headerImage .bx-viewport {
    height: 640px !important;
}

#headerImage .bx-wrapper img {
    width: 100% !important;
}
