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

Stylesheet: Home Page Project Slideshow

Full-bleed slideshow at the top of the home page, replacing the
previous background-video hero. The slides themselves are rendered by
post-formats/home_slider.php from the projects ticked in the admin.

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

Author: MAJ Digital

Stylesheet: SASS Stylesheet

******************************************************************/
/** ONLY ADD SASS MIXINS/VARIABLES/ETC HERE **/
/*  @font-face {
      font-family: 'Font Name';
      src: url('library/fonts/font-name.eot');
      src: url('library/fonts/font-name.eot?#iefix') format('embedded-opentype'),
           url('library/fonts/font-name.woff') format('woff'),
           url('library/fonts/font-name.ttf') format('truetype'),
           url('library/fonts/font-name.svg#font-name') format('svg');
      font-weight: normal;
      font-style: normal;
  }

  @include transition(all, 0.2s, ease-in-out);
  @include border-radius(5px); 
  @include opacity(1.0);

*/
/** Variables **/
/**300,400,700**/
.has-brandone-color {
  color: #345A99;
}

.has-brandtwo-color {
  color: #64ADE0;
}

.has-brandthree-color {
  color: #345A99;
}

.has-brandfour-color {
  color: #345A99;
}

.has-drkgrey-color {
  color: #848590;
}

.has-midgrey-color {
  color: #C2C1C9;
}

.has-lgtgrey-color {
  color: #f5f5f5;
}

.has-white-color {
  color: #FFFFFF;
}

.has-textbrand-color {
  color: #222222;
}

.bgBrand01 {
  background-color: #345A99;
}

.bgBrand02 {
  background-color: #64ADE0;
}

.bgBrand03 {
  background-color: #345A99;
}

.bgBrand04 {
  background-color: #345A99;
}

.bgBrand05 {
  background-color: #848590;
}

.bgBrand06 {
  background-color: #C2C1C9;
}

.bgBrand07 {
  background-color: #f5f5f5;
}

.bgBrand08 {
  background-color: #FFFFFF;
}

.text01 {
  background-color: #222222;
}

.text02 {
  background-color: #FFFFFF;
}

.has-text-background-color {
  background-color: #222222;
}

.has-textbrand-background-color {
  background-color: #222222;
}

.has-drkgrey-background-color {
  background-color: #848590;
}

.has-midgrey-background-color {
  background-color: #C2C1C9;
}

.has-lgtgrey-background-color {
  background-color: #f5f5f5;
}

.has-white-background-color {
  background-color: #FFFFFF;
}

.has-brandone-background-color {
  background-color: #345A99;
}

.has-brandtwo-background-color {
  background-color: #64ADE0;
}

.has-brandthree-background-color {
  background-color: #345A99;
}

.has-brandfour-background-color {
  background-color: #345A99;
}

/** Mixins **/
.lsy-home-slider {
  position: relative;
  width: 100%;
  height: clamp(440px, 43vw, 760px);
  margin: 100px 0 0 0;
  overflow: hidden;
  background-color: #345A99;
}
.lsy-home-slider__slides {
  position: absolute;
  inset: 0;
}
.lsy-home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  z-index: 1;
}
.lsy-home-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.lsy-home-slider__media {
  position: absolute;
  inset: 0;
}
.lsy-home-slider__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}
.lsy-home-slider__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 25, 45, 0.72) 0%, rgba(10, 25, 45, 0.22) 48%, rgba(10, 25, 45, 0) 78%);
  pointer-events: none;
}
.lsy-home-slider__content {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 3.4vw, 50px);
  right: clamp(20px, 3.4vw, 50px);
  bottom: clamp(50px, 5vw, 70px);
}
.lsy-home-slider__title {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.2;
}
.lsy-home-slider__description {
  margin: 10px 0 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
.lsy-home-slider__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 22px 0 0 0;
}
.lsy-home-slider__actions .wp-block-button {
  margin: 0 22px 0 0;
}
.lsy-home-slider__actions .btn {
  text-decoration: none;
}
.lsy-home-slider__all {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}
.lsy-home-slider__all:hover, .lsy-home-slider__all:focus {
  color: #64ADE0;
}
.lsy-home-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 46px;
  height: 46px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  color: #345A99;
  font-size: 24px;
  line-height: 46px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.lsy-home-slider__arrow:hover, .lsy-home-slider__arrow:focus {
  background-color: #FFFFFF;
}
.lsy-home-slider__arrow--prev {
  left: clamp(12px, 1.6vw, 24px);
}
.lsy-home-slider__arrow--next {
  right: clamp(12px, 1.6vw, 24px);
}
.lsy-home-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 20;
  text-align: center;
}
.lsy-home-slider__dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.lsy-home-slider__dot.is-active, .lsy-home-slider__dot:hover {
  background-color: #FFFFFF;
}

.lsy-home-slider + .container-fluid .editorStyles {
  padding-top: 0;
}

@media only screen and (max-width: 767px) {
  .lsy-home-slider {
    height: clamp(420px, 78vh, 560px);
  }
  .lsy-home-slider__actions .wp-block-button {
    margin: 0 15px 10px 0;
  }
  .lsy-home-slider__arrow {
    width: 38px;
    height: 38px;
    font-size: 20px;
    line-height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lsy-home-slider__slide {
    transition: none;
  }
}
@media only screen and (max-width: 530px) {
  .lsy-home-slider {
    margin-top: 75px;
  }
}
