/* =============================================================================
   Header slider (layout 02)
   ========================================================================== */

.header__frame {
  --swiper-pagination-color: rgb(var(--c-neutral-lightest));
  --swiper-pagination-bullet-inactive-color: rgb(var(--c-neutral-darker));
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-navigation-color: rgb(var(--c-neutral-lightest));
  --swiper-navigation-size: 22px;
  display: block;
  width: 100%;
}

.header__slider {
  position: relative;
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.header__slide {
  position: relative;
}

.header__link {
  display: block;
}

.header__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* White gradient on the left half behind the caption */
.header__shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 75%;
  background: linear-gradient(90deg, rgba(var(--c-neutral-lightest), 1), rgba(var(--c-neutral-lightest), 0));
  pointer-events: none;
}

.header__text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3%;
  right: 3%;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--f-family-l);
  font-size: 1.6vw;
}

.header__caption {
  max-width: 600px;
}

.header__title {
  color: rgb(var(--c-neutral-darker));
  font-family: var(--f-family-b);
  font-size: var(--f-size-l-5);
  line-height: 120%;
}

.header__description {
  margin-top: 1em;
  color: rgb(var(--c-neutral-darker));
  font-size: var(--f-size-l-3);
  line-height: 130%;
}

.header__button {
  display: inline-block;
  margin-top: 1em;
  padding: 0.2rem 0.8rem;
  background: rgb(var(--c-primary));
  color: rgb(var(--c-neutral-lightest));
  font-size: var(--f-size-l-2);
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.header__arrow {
  display: none;
  width: 40px;
  height: 60px;
  margin-top: -30px;
  background: rgba(var(--c-neutral-darker), 0.3);
}

.header__arrow.-prev {
  left: 0;
}

.header__arrow.-next {
  right: 0;
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 640px) {
  .header__shadow {
    width: 50%;
  }

  .header__text {
    left: 70px;
    right: 70px;
    max-width: 50vw;
    font-size: 1.2vw;
  }

  .header__title {
    font-size: var(--f-size-l-6);
  }

  .header__description {
    margin-top: 1.5em;
    font-size: var(--f-size-l-2);
  }

  .header__button {
    margin-top: 1.8em;
    padding: 0.6rem 1.2rem;
    font-size: inherit;
  }

  .header__arrow {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .header__text {
    max-width: none;
    font-size: inherit;
  }

  .header__button {
    height: 50px;
    padding: 0.2rem 1.3rem;
    line-height: 50px;
  }
}

@media (hover: hover) {
  .header__button:hover {
    background: rgb(var(--c-neutral-darker));
  }
}
