header+div.bx-wrapper {
  /* reset bottom margin */
  margin-bottom: 0;
  -webkit-user-select: none;
}

header+div.bx-wrapper>div.bx-viewport {
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  margin: 0;
  padding: 0;
  border: none;
  left: 0;
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  /* background-color: #323439; */
}

/* Safari fix 'half slide height' on initial load bug */

@media screen and (-webkit-min-device-pixel-ratio:0) {
  header+div.bx-wrapper>div.bx-viewport {
    height: 100%!important;
  }
}

header+.bx-wrapper .bx-pager {
  /* bottom: 5px; */
  bottom: 15px;
  padding-top: 10px;
}

header+.bx-wrapper .bx-pager.bx-default-pager a {
  height: 3px;
  width: 40px;
  background-color: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 0;
}

header+.bx-wrapper .bx-pager.bx-default-pager a:hover {
  background-color: #49C8EA;
}

header+.bx-wrapper .bx-pager.bx-default-pager a.active {
  background-color: #E35700;
}

/* fix safari loading incorrect first slide */

/* use JS to then show() the slide onSliderLoad */

section.homepage-slider .bx-clone {
  display: none;
}

section.homepage-slider div.slide {
  position: relative;
  max-height: 600px;
}

section.homepage-slider div.slide>img:first-child {
  position: relative;
}

section.homepage-slider div.slide::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
  opacity: 0.75;
}

/* All slide definitions */

section.homepage-slider div.slide div.container {
  position: relative;
}

section.homepage-slider div.slide div.inner {
  position: absolute;
  width: 100%;
  /* bottom: 10%; */
  bottom: 12%;
  z-index: 100;
  color: white;
}

/* Generic slide */

section.homepage-slider div.slide.generic div.slide-content {
  width: 50%;
}

section.homepage-slider div.slide.generic.pull-right div.slide-content {
  float: right;
}

section.homepage-slider div.slide.generic div.slide-content * {
  color: white;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

section.homepage-slider div.slide.generic div.slide-content p.lead {
  font-size: 1.1em;
  line-height: 150%;
}

section.homepage-slider div.slide.generic div.slide-content h2 {
  font-weight: bold;
  font-size: 2.3em;
  margin-bottom: 10px;
}

section.homepage-slider div.slide.generic h2::before {
  font-family: "Arial", Arial, sans;
  font-size: 13.5px;
  font-weight: bold;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  text-transform: uppercase;
  display: block;
}

section.homepage-slider div.slide.generic.promotion h2::before {
  content: "Promotion";
}

section.homepage-slider div.slide.generic.news h2::before {
  content: "News";
}

section.homepage-slider div.slide.generic.featured-unit h2::before {
  content: "Featured Unit";
}

/* Master homepage slide */

div.tagline>h1 {
  /* seo embedded image h1 reset   */
  margin: 0;
  padding: 0;
  line-height: 100%;
}

div.tagline>h1>img.slogan {
  max-width: 100%;
  width: auto;
  height: auto;
  margin-bottom: 5px;
}

div.tagline img {
  max-width: none;
  width: auto;
}

div.tagline {
  width: 45%;
}

p.supporting-text {
  font-family: "Afacad Flux";
  font-size: 1.3em;
  line-height: 150%;
}

div.tagline p.supporting-text {
  margin-bottom: 15px;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

div.slide-content a.button, div.tagline a.button {
  font-size: 1.1em;
  height: auto;
  padding: 5px 15px;
  border-width: 1px;
}

div.slide-content a.button, div.tagline a.button.button-secondary {
  text-shadow: none !important;
  background-color: #FFFFFF;
  color: #404445 !important;
  border-color: #FFFFFF;
}

div.tagline a.button.button-secondary:hover {
  /* background-color: #0baf34;
  border-color: #0baf34;
  color: white; */
}

span.nowrap {
  white-space: nowrap;
}

.button-container {
  display: flex;
}

.button-container a.button {
  flex: 1 1 auto;
  margin-right: 10px;
}

.button-container a.button:last-child {
  margin-right: 0;
}

header+.bx-wrapper .bx-controls-direction .bx-prev, header+.bx-wrapper .bx-controls-direction .bx-next {
  /* opacity: 1; */
  z-index: 0;
}

header+.bx-wrapper .bx-controls-direction .bx-prev {
  left: 5%;
  background: url('/images/arrow-updated.svg') no-repeat;
  background-position: center top;
  background-size: 80px 80px;
  height: 40px;
  border-radius: 0;
}

header+.bx-wrapper .bx-controls-direction .bx-next {
  right: 5%;
  background: url('/images/arrow-updated.svg') no-repeat;
  background-position: center bottom;
  background-size: 80px 80px;
  height: 40px;
  border-radius: 0;
}

/* mobile fallback slider element */

div.mobile-slider-fallback, div.mobile-slider-fallback-generic-container {
  /* only show on mobile */
  /* note to self: destroy slider JS? */
  display: none;
  position: relative;
  margin-bottom: 20px;
}

div.mobile-slider-fallback-helper {
  display: none;
}

div.mobile-slider-fallback-generic-container h2 {
  font-size: 1.5em;
  font-weight: bold;
  position: relative;
}

@-webkit-keyframes swipeSlide {
  50% {
    right: 10px;
  }
  100% {
    right: 0;
  }
}

@keyframes swipeSlide {
  50% {
    right: 10px;
  }
  100% {
    right: 0;
  }
}

div.mobile-slider-fallback-generic-container>div.container h2::after {
  content: '';
  width: 30px;
  height: 30px;
  background: url('/images/horizontal-nav.png') no-repeat center center;
  background-size: 30px 30px;
  position: absolute;
  opacity: 0.5;
  right: 0;
  top: 3%;
  -webkit-animation: swipeSlide 1s;
  -webkit-animation-delay: 2s;
  animation: swipeSlide 1s;
  animation-delay: 2s;
  animation-fill-mode: both;
  animation-iteration-count: 10;
}

div.mobile-slider-fallback::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
  opacity: 1;
}

div.mobile-slider-fallback>img:first-child {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

div.mobile-slider-fallback img.slogan {
  width: auto;
  max-width: 100%;
  height: auto;
}

div.mobile-slider-fallback div.tagline p.supporting-text {
  color: white;
}

div.mobile-slider-fallback div.tagline {
  position: absolute;
  width: 100%;
  bottom: 50%;
  -moz-transform: translate(0, 50%);
  -webkit-transform: translate(0, 50%);
  transform: translate(0, 50%);
  z-index: 100;
}

/* ///////////// */

/* MEDIA QUERIES */

/* ///////////// */

/* BIGGER SCREEN */

@media (min-width: 1600px) {
  section.homepage-slider div.slide {
    /* border: 6px solid red; */
  }
  section.homepage-slider div.slide>img:first-child {
    /* margin-top: 12px;
    transform: translateY(-25%); */
    padding-bottom: 20%;
    margin: 0 auto;
  }
  header+.bx-wrapper .bx-controls-direction {
    max-width: 1600px;
    margin: 0 auto;
    display: block;
    position: relative;
    /* half the height of the bgimage */
    bottom: 300px;
  }
}

/* SMALL SCREEN */

@media (max-width: 1200px) {
  section.homepage-slider div.slide.generic.pull-right div.slide-content {
    float: none;
  }
  section.homepage-slider div.slide.generic div.slide-content, section.homepage-slider .tagline {
    /* border: 3px solid red; */
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }
  div.tagline>h1>img.slogan {
    max-width: 450px;
    margin: 0 auto;
    padding-bottom: 10px;
  }
  div.tagline p.supporting-text {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 20px;
    font-size: 1.6em;
    line-height: 160%;
  }
  section.homepage-slider div.slide::after {
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
  }
  div.tagline div.button-container {
    width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 1120px) {
  section.homepage-slider .tagline {
    /* border: 6px solid green; */
    width: 100%;
  }
  div.tagline>h1>img.slogan {
    max-width: 360px;
  }
  div.tagline p.supporting-text {
    width: 70%;
  }
}

@media (max-width: 1024px) {
  section.homepage-slider .tagline {
    width: 100%;
  }
  div.tagline>h1>img.slogan {
    max-width: 320px;
  }
  div.tagline p.supporting-text {
    width: 80%;
    font-size: 1.2em;
  }
  section.homepage-slider div.slide.generic div.slide-content h2 {
    font-weight: normal;
    font-size: 2em;
  }
}

@media (max-width: 900px) {
  div.tagline>h1>img.slogan {
    max-width: 270px;
  }
  div.tagline p.supporting-text {
    font-size: 1.1em;
    margin-bottom: 15px;
  }
}

@media (max-width: 800px) {
  section.homepage-slider, header+div.bx-wrapper {
    display: none;
  }
  div.mobile-slider-fallback, div.mobile-slider-fallback-generic-container {
    display: block;
  }
  /* define generic slider mobile fallbacks */
  div.mobile-slider-fallback-generic section.homepage-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch !important;
    /* padding-left: 7.5%; */
    /* padding-left: 20px; */
  }
  div.mobile-slider-fallback-generic {
    position: relative;
  }
  div.mobile-slider-fallback-generic::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    /* left: 0; */
    /* width needs to be slightly less than div.mobile-slider-fallback-generic section.homepage-slider::before and ::after flex basis width */
    width: 28px;
    opacity: 0.4;
    background: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000', GradientType=1);
  }
  div.mobile-slider-fallback-generic section.homepage-slider::-webkit-scrollbar {
    display: none;
  }
  div.mobile-slider-fallback-generic section.homepage-slider>div {
    flex: 0 0 300px;
    padding: 20px;
    margin-right: 20px;
    background-color: white;
    border-radius: 5px;
  }
  div.mobile-slider-fallback-generic section.homepage-slider::before, div.mobile-slider-fallback-generic section.homepage-slider::after {
    content: '';
    display: flex;
    flex: 1 0 30px;
    z-index: 99;
    background-color: #EDEDED;
  }
  /* div.mobile-slider-fallback-generic section.homepage-slider > div:first-child {
    margin-left: 10%;
  } */
  div.mobile-slider-fallback-generic section.homepage-slider img {
    display: none;
  }
  div.mobile-slider-fallback-generic section.homepage-slider>div:first-child, div.mobile-slider-fallback-generic section.homepage-slider div.slide.master {
    display: none;
  }
  div.mobile-slider-fallback-generic section.homepage-slider div.slide.generic div.inner {
    position: static;
  }
  div.mobile-slider-fallback-generic section.homepage-slider div.slide::after {
    display: none;
  }
  div.mobile-slider-fallback-generic section.homepage-slider div.slide.generic div.inner>div.container {
    width: 100%;
  }
  div.mobile-slider-fallback-generic section.homepage-slider div.slide.generic div.inner>div.container div.slide-content {
    width: 100%;
    text-align: left;
  }
  div.mobile-slider-fallback-generic section.homepage-slider div.slide.generic div.inner>div.container div.slide-content h2 {
    color: #58585a;
    font-size: 1.1em;
    letter-spacing: 0.2px;
    text-shadow: none;
  }
  div.mobile-slider-fallback-generic section.homepage-slider div.slide.generic div.inner>div.container div.slide-content h2::before {
    font-size: 0.7em;
  }
  div.mobile-slider-fallback-generic section.homepage-slider div.slide.generic div.inner>div.container div.slide-content a.button {
    opacity: 0;
    border: none;
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    cursor: pointer;
    background-color: transparent;
    color: transparent !important;
  }
  div.mobile-slider-fallback-generic section.homepage-slider div.slide.generic div.inner>div.container div.slide-content p {
    color: #58585a;
    font-size: 0.95em;
    line-height: 130%;
    text-shadow: none;
    margin-bottom: 0;
  }
  div.mobile-slider-fallback div.button-container {
    width: 80%;
    flex-direction: column;
    margin-top: 20px;
  }
  div.mobile-slider-fallback div.tagline p.supporting-text {
    width: 80%;
    font-size: 1.4em;
  }
  div.mobile-slider-fallback div.button-container a.button {
    flex: 1 1 100%;
    margin-right: 0;
    font-size: 1.1em;
  }
}

@media (max-width: 700px) {
  div.mobile-slider-fallback div.tagline {
    bottom: 5%;
    transform: translate(0, 0);
    -moz-transform: translate(0, 0);
    -webkit-transform: translate(0, 0);
  }
  div.mobile-slider-fallback div.button-container {
    width: 100%;
    margin-top: 20px;
  }
  div.mobile-slider-fallback div.tagline p.supporting-text {
    display: none;
  }
  div.mobile-slider-fallback-helper {
    display: block;
  }
  div.mobile-slider-fallback-generic section.homepage-slider>div {
    flex: 0 0 200px;
    padding: 15px;
  }
}

@media (max-width: 500px) {
  div.mobile-slider-fallback div.tagline {
    bottom: 0;
  }
}

@media (max-width: 420px) {
  div.mobile-slider-fallback div.tagline {
    bottom: 5%;
  }
  div.mobile-slider-fallback div.tagline img.slogan {
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  div.mobile-slider-fallback div.button-container a.button:last-child {
    display: none;
  }
}

/* iPhones - Landscape */

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
  /* div.mobile-slider-fallback {
      margin-top: -35%;
    }
    div.mobile-slider-fallback > div.tagline {
      bottom: 10% !important;
    }
    div.mobile-slider-fallback div.tagline div.button-container {
      margin-top: 10px;
    }
    div.mobile-slider-fallback div.tagline div.button-container {
      flex-direction: row;
    }
    div.mobile-slider-fallback div.tagline div.button-container a.button {
      flex: 1 1 50%;
    }
    div.mobile-slider-fallback div.tagline div.button-container a.button:last-child {
      margin-left: 20px;
    } */
}