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

.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%;
  height: 100%;
}

.header__slider,
.header__slider .swiper-wrapper,
.header__slide,
.header__image {
  height: 100%;
}

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

.header__slide {
  position: relative;
}

.header__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* White caption box bottom right with offset frame */
.header__text {
  display: none;
  position: absolute;
  right: 0;
  bottom: 5vw;
  z-index: 2;
  font-size: 1.1vw;
}

.header__caption {
  position: relative;
  padding: 0.8rem 2.5rem 1rem 2.5rem;
  background: rgb(var(--c-neutral-lightest));
}

.header__caption::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -2px;
  bottom: 10px;
  left: -10px;
  z-index: -1;
  border: 2px solid rgb(var(--c-neutral-lightest));
}

.header__title {
  display: block;
  color: rgb(var(--c-neutral-darker));
  font-size: var(--f-size-l-6);
  line-height: 110%;
}

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

.header__arrow.-prev {
  left: 0;
}

.header__arrow.-next {
  right: 0;
}

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

@media (min-width: 400px) {
  .header__text {
    display: block;
  }
}

@media (min-width: 640px) {
  .header__arrow {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .header__text {
    bottom: 8vw;
  }
}

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

@media (hover: hover) {
  .header__arrow:hover {
    background: rgba(var(--c-neutral-lightest), 0.7);
  }
}
