{% import './../_variables.css' %}
{% import '../../css/_css-varrs.css' %}

:root {
  --container-width2: var(--container-width); /* Set the container width variable here */
}

.header-image__container {
  position: relative;
}

.header-image--3 .header-image__container--right {
  content: "";
  position: absolute;
  top: 0;
  right: calc((100% - var(--container-width)) / 2);
  width: 200%;
  height: calc(100% - 52px);
  background: #E00053;
  z-index: 0;
}

.header-image--3 .header-image__container--left {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--container-width) - 110px + ((100% - var(--container-width)) / 2));
  width: 200%;
  height: calc(100% - 52px);
  background: #fff;
  z-index: 1;
  transform: skewX(-12deg);
}

.header-image--1 .header-image__bgm,
.header-image--2 .header-image__bgm {
  line-height: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.header-image__bgm--mobile {
  display: none;
}

.header-image--1 .header-image__container .container,
.header-image--2 .header-image__container .container {
  position: relative;
}

.header-image--1 .header-image__bgm img,
.header-image--2 .header-image__bgm img {
  width: 100%;
  height: calc(100% - 52px);
  object-fit: cover;
  object-position: right;
}

.header-image--1 .header-image__container .row-fluid .header-image__layer,
.header-image--2 .header-image__container .row-fluid .header-image__layer {
  content: "";
  position: absolute;
  background-color: #00888A;
  width: 100%;
  height: calc(100% - 52px);
  z-index: 0;
  transform: skewX(-12deg);
}

.hero-banner__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% - 52px);
  line-height: 0;
} 

.hero-banner__video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
} 

.header-image--1 .header-image__container .row-fluid .header-image__layer {
  left: calc(-100% + 200px);
}

.header-image--2 .header-image__container .row-fluid .header-image__layer {
  left: calc(-100% + 142px);
}

.header-image--1 .header-image__content,
.header-image--2 .header-image__content {
  max-width: 821px;
  width: 100%;
  z-index: 9;
}

.header-image--1 .header-image__content {
  padding: 400px 0 228px;
}

.header-image--3 .header-image__content {
  max-width: 871px;
  width: 100%;
  z-index: 9;
  padding: 200px 0 125px;
}

.header-image--3 .header-image__content--has-button.header-image__content {
  padding: 125px 0 125px;
}

.header-image--1 .header-image__content--has-button.header-image__content {
  padding: 327px 0 228px;
}

.header-image--2 .header-image__content {
  padding: 273px 0 102px;
}

.header-image--2 .header-image__content--has-button.header-image__content {
  padding: 200px 0 102px;
}

.header-image--1 .header-image__svg,
.header-image--2 .header-image__svg {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.header-image--1 .header-image__video--mobile,
.header-image--2 .header-image__video--mobile {
  display: none;
}

.header-image--3 .header-image__svg {
  position: absolute;
  right: calc((100% - var(--container-width)) / 2);
  top: 0;
  height: 100%;
  z-index: 1;
}

.header-image--3 .header-image__svg--mobile {
  display: none;
}

.header-image__svg-container,
.header-image--1 .header-image__svg svg,
.header-image--2 .header-image__svg svg,
.header-image--3 .header-image__svg svg {
  height: 100%;
  width: auto;
}

.header-image__headline {
  margin-bottom: 0;
}

.header-image__button {
  margin-top: 30px;
}

@media screen and (max-width: ) {
  .header-image--1 .header-image__svg,
  .header-image--2 .header-image__svg {
    left: 15px;
  }

  .header-image--3 .header-image__svg {
    right: 15px;
  }

  .header-image--3 .header-image__container--left {
    left: calc(100% - 120px);
  }
}

@media screen and (max-width: 1200px) {
  .header-image--3 .header-image__container--left {
    left: calc(100% - 135px);
  }

  .header-image--3 .header-image__content {
    max-width: 600px;
  }
}

@media screen and (max-width: 991px) {
  .header-image--3 .header-image__container--left {
    display: none;
  }

  .header-image--3 .header-image__container--right {
    width: 100%;
    right: 0;
    top: 0;
    height: calc(100% - 26px);
  }

  .header-image--3 .header-image__svg--desktop {
    display: none;
  }

  .header-image--3 .header-image__svg-container {
    position: relative;
  }

  .header-image--3 .header-image__svg-container::after {
    content: "";
    position: absolute;
    right: -50%;
    top: 0;
    width: 100%;
    height: calc(100% - 26px);
    background: #fff;
    transform: skewX(-12deg);
    z-index: -1;
  }

  .header-image--3 .header-image__svg {
    right: 0;
    top: unset;
    bottom: 0;
    height: auto;
  }

  .header-image--3 .header-image__container .header-image__svg--mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  .header-image--3 .header-image__container .header-image__content {
    padding: 74px 85px 100px 0;
  }
}

@media screen and (max-width: 767px) {
  .header-image__bgm--mobile {
    display: block;
  }

  .header-image__bgm--desktop {
    display: none;
  }

  .header-image--1 .header-image__bgm img,
  .header-image--2 .header-image__bgm img {
    height: calc(100% - 23px);
  }

  .header-image--1 .header-image__svg,
  .header-image--2 .header-image__svg {
    left: 10px;
  }
  
  .header-image--1 .hero-banner__video-container,
  .header-image--2 .hero-banner__video-container {
    height: calc(100% - 23px);
  }

  .header-image--1 .header-image__container .row-fluid .header-image__layer {
    height: calc(100% - 23px);
    left: calc(-100% + 100px);
    transform: skewX(-18deg)
  }
  
  .header-image--2 .header-image__container .row-fluid .header-image__layer {
    height: calc(100% - 23px);
    left: calc(-100% + 106px);
    transform: skewX(-18deg)
  }

  .header-image--1 .header-image__content,
  .header-image--2 .header-image__content {
    padding: 171px 0 73px;
  }

  .header-image--1 .header-image__content--has-button.header-image__content,
  .header-image--2 .header-image__content--has-button.header-image__content {
    padding: 73px 0 73px;
  }
  
  .header-image--1 .header-image__video--desktop,
  .header-image--2 .header-image__video--desktop {
    display: none;
  }
  
  .header-image--1 .header-image__video--mobile,
  .header-image--2 .header-image__video--mobile {
    display: block;
  }
}