.headerGallery.desktop {
  display: block;
}

.headerGallery.mobile {
  display: none;
}

@media (max-width: 417px) {
  .headerGallery.desktop {
    display: none;
  }
  .headerGallery.mobile {
    display: block;
  }
}

.backgrounds {
  position: relative;
  overflow: hidden;
  height: 100%;
  /*max-height: 415px;*/
}

#home .backgrounds {
  max-height: 100%;
}

.backgrounds .background {
  display: block;
  width: 100%;
  height: auto;
  background-position: center center;
  background-size: cover;
  bottom: 0px;
  top: auto
}

.backgrounds .cycle-overlay {
  color: #065199;
  position: relative;
  top: 0;
  left: 0;
  display: flex;
  justify-content: left;
  align-items: top;
  clear: both;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
}

@media (max-width:767px) {
  .backgrounds .cycle-overlay {
    padding: 0;
    justify-content: end;
    align-items: end;
  }
}

.headerGallery .cycle-overlay div {
  margin-top: 0px;
  min-width: 225px;
}

.headerGallery .cycle-overlay div.img-title.position-top {
  position: absolute;
  top: 60px;
  left: 0;
  bottom: auto;
  right: 0;
}

.headerGallery .cycle-overlay div.img-title.position-bottom {
  position: absolute;
  top: auto;
  left: 0;
  bottom: 60px;
  right: 0;
}

.headerGallery .cycle-overlay div.img-title.position-left {
  position: absolute;
  top: 0;
  left: 44px;
  bottom: 0;
  right: auto;
}

.headerGallery .cycle-overlay div.img-title.position-right {
  position: absolute;
  top: 0;
  left: auto;
  bottom: 60px;
  right: 44px;
}

.headerGallery .cycle-overlay div.img-title.position-top-left {
  position: absolute;
  top: 60px;
  left: 44px;
  bottom: auto;
  right: auto;
}

.headerGallery .cycle-overlay div.img-title.position-top-right {
  position: absolute;
  top: 60px;
  right: 44px;
  bottom: auto;
  left: auto;
}

.headerGallery .cycle-overlay div.img-title.position-bottom-left {
  position: absolute;
  bottom: 60px;
  left: 44px;
  top: auto;
  right: auto;
}

.headerGallery .cycle-overlay div.img-title.position-bottom-right {
  position: absolute;
  bottom: 60px;
  right: 44px;
  top: auto;
  left: auto;
}

.headerGallery .cycle-overlay div.img-title.position-center-left {
  position: absolute;
  bottom: auto;
  right: auto;
  top: auto;
  left: 44px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.headerGallery .cycle-overlay div.img-title.position-center-right {
  position: absolute;
  bottom: auto;
  right: 44px;
  top: auto;
  left: auto;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.headerGallery .cycle-overlay div.img-title {
  padding: 36px 80px 36px 33px;
  background: rgba(49, 70, 104, 0.71);
}

.headerGallery .cycle-overlay div.img-title p,
.headerGallery .cycle-overlay div.img-title h1,
.headerGallery .cycle-overlay div.img-title h2,
.headerGallery .cycle-overlay div.img-title h3,
.headerGallery .cycle-overlay div.img-title h4,
.headerGallery .cycle-overlay div.img-title h5,
.headerGallery .cycle-overlay div.img-title h6 {
  line-height: 1.15;
}

/*
@media (max-width: 479px) {
  .headerGallery .cycle-overlay div.img-title h1.title.title-1 {
    font-size: 2.2em;
  }
  .headerGallery .cycle-overlay div.img-title h2.title.title-1 {
    font-size: 2em;
  }
  .headerGallery .cycle-overlay div.img-title h3.title.title-1 {
    font-size: 1.65em;
  }
  .headerGallery .cycle-overlay div.img-title h4.title.title-1 {
    font-size: 1.14em;
  }
  .headerGallery .cycle-overlay div.img-title h5.title.title-1 {
    font-size: 0.86em;
  }
  .headerGallery .cycle-overlay div.img-title h6.title.title-1 {
    font-size: 0.72em;
  }
}
*/

.headerGallery .cycle-overlay div.img-title :last-of-type {
  margin-bottom: 0;
}

.headerGallery .cycle-pager {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow: hidden;
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  top: auto;
  z-index: 999;
  justify-content: center;
}

.headerGallery .cycle-pager > a {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 12px;
  padding-left: 0;
  padding-right: 0;
  background: #FBFBFB;
}

.headerGallery .cycle-pager > a.cycle-pager-active {
  border: 1px solid #FBFBFB;
  background: #314668;
}

@media (max-width:991px) {
  .headerGallery .cycle-overlay div.img-title {
    padding: 15px 30px;
  }
}

@media (max-width:767px) {
  .headerGallery .cycle-overlay div.img-title {
    font-size: 9px;
    padding: 5px 15px;
  }
  .headerGallery .cycle-overlay div.img-title.position-top {
    top: 0;
  }
  .headerGallery .cycle-overlay div.img-title.position-bottom {
    top: 0;
    bottom: auto;
  }
  .headerGallery .cycle-overlay div.img-title.position-left {
    left: 0;
  }
  .headerGallery .cycle-overlay div.img-title.position-right {
    bottom: 0;
  }
  .headerGallery .cycle-overlay div.img-title.position-top-left {
    top: 0;
  }
  .headerGallery .cycle-overlay div.img-title.position-top-right {
    top: 0;
  }
  .headerGallery .cycle-overlay div.img-title.position-bottom-left {
    top: 0;
    bottom: auto;
    right: 0;
    left: 0;
  }
  .headerGallery .cycle-overlay div.img-title.position-bottom-right {
    top: 0;
    bottom: auto;
    right: 0;
    left: 0;
  }
  .headerGallery .cycle-overlay {
    padding-left: 0
  }
  .headerGallery .cycle-overlay div.img-title {
    padding: 5px 15px;
    text-align: center;
    width: 100%;
  }
  .headerGallery .cycle-overlay div.img-title,
  .headerGallery .cycle-overlay div.img-title h1,
  .headerGallery .cycle-overlay div.img-title h2,
  .headerGallery .cycle-overlay div.img-title h3,
  .headerGallery .cycle-overlay div.img-title h4,
  .headerGallery .cycle-overlay div.img-title h5,
  .headerGallery .cycle-overlay div.img-title h6 {}
}