.mainpage.hero {
  width: 100%;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.subpage.hero {
  min-height: 200px;
}

.subpage.hero + .wysiwyg {
  margin-top: -1rem;
  padding-top: 0;
}

.hero.subpage.hero.subpage--bg-img {
  min-height: 300px;
  padding-bottom: 80px;
  margin-bottom: 40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.subpage.subpage--bg-img .hero-wrapper {
  padding-top: 80px;
}

.intranet.mainpage.hero {
  max-height: 400px;
  background-color: var(--gray-10);
}

.mainpage .background-video {
  z-index: -1;
  min-width: 100%;
  min-height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 1s;
  opacity: 0;
}

.mainpage .background-video.play {
  transition: opacity 1s;
  opacity: 1;
}

.mainpage .background-Image {
  z-index: -2;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-repeat: no-repeat;
  background-size: cover;
}

.subpage .background-Image {
  display: none;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 40px;
  min-height: 400px;
}

.hero .hero-wrapper {
  gap: 0 32px;
}

.mainpage.hero-wrapper {
  margin: 0;
  z-index: 10;
}

/* S */
@media (max-width: 479px) {
  /* 4 columns */
  .breadcrumbs {
    grid-column: 1 / 5;
  }
}

/* M */
@media (min-width: 480px) and (max-width: 960px) {
  /* 8 columns */
  .breadcrumbs {
    grid-column: 1 / 9;
  }
}

/* L - XL */
@media (min-width: 960px) {
  /* 12 columns */
  .breadcrumbs {
    grid-column: 1 / 12;
  }
}

.breadcrumbs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
}

.breadcrumbs ul li {
  display: inline-block;
  margin: 4px 5px;
}

.breadcrumbs ul li a {
  text-decoration: none;
  padding: 4px;
  border-bottom: 1px solid var(--gray-25);
  transition: 0.5s;
}

.breadcrumbs a:hover {
  border-bottom: 1px solid var(--foreground);
}

.breadcrumbs .dash {
  color: var(--primary);
  display: inline-block;
  font-weight: 600;
  font-size: 20px;
  margin-right: 4px;
  margin-left: 8px;
}

.breadcrumbs .current_page_item a {
  border-bottom: 1px solid var(--primary);
  font-weight: 600;
}

.breadcrumbs .dropdown {
  position: relative;
}

.breadcrumbs .dropdown .pagenav.underline-green {
  border-bottom: 1px solid var(--primary);
}
.breadcrumbs .dropdown .pagenav.underline-gray {
  border-bottom: 1px solid var(--gray-25);
}

.breadcrumbs .dropdown .hasChildren::after {
  content: url(../images/icon_arrow_down.svg);
  padding: 5px;
  position: relative;
  top: -3px;
}

.breadcrumbs .dropdown .hasChildren:hover::after {
  content: url(../images/icon_arrow_up.svg);
}

.breadcrumbs .dropdown ol {
  visibility: hidden;
  opacity: 0;
  min-width: 5rem;
  position: absolute;
  transition: opacity 0.5s ease;
  left: 0;
  display: none;

  min-width: 200px;
  padding: 16px 24px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  background-color: var(--background-95);
}

.breadcrumbs .dropdown li:hover > ol,
.breadcrumbs .dropdown li:focus-within > ol,
.breadcrumbs .dropdown li > ol:hover,
.breadcrumbs .dropdown li > ol:focus {
  visibility: visible;
  opacity: 1;
  display: block;
  transition: opacity 0.5s ease;
}

.breadcrumbs .dropdown li ol li.current_page_ancestor a,
.breadcrumbs .dropdown li ol li.current_page_parent a,
.breadcrumbs .dropdown li ol li.current_page_item a {
  border-bottom: 1px solid var(--primary);
  font-weight: 600;
}

.breadcrumbs .dropdown li ol li {
  clear: both;
  width: 100%;
}

.subpage .image-wrapper {
  margin-top: 0;
  height: auto;
}

.mainpage .canvas {
  position: absolute;
  z-index: -1;
}
.mainpage .canvas canvas {
  position: absolute;
  width: calc(100% - 32px);
  height: 100%;
  display: block;
  margin: 16px;
}

.hero .hero-wrapper .text-only p {
  font-family: "WISE", Helvetica, Arial, sans-serif !important;
  font-weight: 400;
  font-size: 23px;
  line-height: 28px;
}

@media (prefers-reduced-motion) {
  .mainpage .canvas {
    display: none;
  }

  .mainpage .background-video {
    display: none;
  }
}

/* S */
@media (max-width: 479px) {
  /* .mainpage.hero {
    height: calc(100vh - 40px);
    max-height: 744px;
  } */

  .mainpage.hero .content p {
    /* Same as .ps in font.css */
    font-weight: 400;
    font-size: 17px;
    line-height: 20px;
  }

  .hero .content {
    grid-column: 1 / 5;
  }
  .hero h1 {
    font-size: 33px;
    line-height: 35px;
  }
  .image-wrapper {
    height: 30vh;
  }
}

/* Both S & M */
@media (max-width: 960px) {
  .hero .no-animation-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-repeat: repeat;
    background-size: 50px 50px;
  }

  .mainpage .canvas {
    display: none;
  }

  .mainpage .canvas.full {
    width: 100%;
    height: 100%;
  }
  .mainpage .canvas.half {
    width: 100%;
    height: 50%;
  }
  .mainpage .canvas.half canvas {
    z-index: 2;
  }

  .image-wrapper {
    width: calc(100% + 40px);
    grid-column: 2 / 9;
    grid-row: 1 / 1;
    display: flex;
    justify-content: flex-end;
  }

  .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* M */
@media (min-width: 480px) and (max-width: 600px) {
  /* 8 columns */
  .hero .content {
    grid-column: 1 / 9;
  }
}

@media (min-width: 600px) and (max-width: 960px) {
  /* 8 columns */
  .hero .content {
    grid-column: 1 / 9;
  }
}

/* Both Ms */
@media (min-width: 480px) and (max-width: 960px) {
  /* 8 columns */
  .mainpage.hero {
    min-height: 600px;
  }

  .mainpage.hero .content p {
    /* Same as .pl in font.css */
    font-family: "WISE", Helvetica, Arial, sans-serif !important;
    font-weight: 400;
    font-size: 23px;
    line-height: 28px;
  }

  .mainpage.hero h1 {
    font-size: 50px;
    line-height: 52px;
  }
  .subpage.hero h1 {
    font-size: 35px;
    line-height: 37px;
  }

  .image-wrapper {
    height: 50vh;
    max-height: 500px;
  }
}

/* @media (min-width: 480px) {
  .mainpage.hero {
    min-height: 825px;
    height: calc(100vh - 40px);
    max-height: 1000px;
  }
} */

/* L - XL */
@media (min-width: 960px) {
  /* 12 columns */

  .mainpage.hero {
    min-height: 500px;
  }

  .mainpage.hero .content {
    grid-row: 1 / 1;
  }

  .hero .content.long {
    grid-column: 1 / 9;
  }
  .hero .content.long.text-only {
    grid-column: 1 / 9;
  }
  .hero .content.short {
    grid-column: 1 / 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 120px;
  }

  .hero .content.short p:empty {
    display: none;
  }

  .mainpage.hero .content.long h1 {
    font-size: 54px;
    line-height: 50px;
  }
  .mainpage.hero .content.short h1 {
    font-size: 44px;
    line-height: 40px;
    margin-bottom: 0px !important;
  }
  .subpage.hero h1 {
    font-size: 44px;
    line-height: 40px;
  }

  .mainpage.hero .content p {
    /* Same as .pl in font.css */
    font-family: "WISE", Helvetica, Arial, sans-serif !important;
    font-weight: 400;
    font-size: 23px;
    line-height: 28px;
  }

  .mainpage .canvas canvas {
    left: 0;
  }
  .mainpage .canvas.full {
    width: 100%;
    height: 100%;
  }
  .mainpage .canvas.half {
    width: 54%;
    height: 90%;
  }
  .mainpage .canvas.half canvas {
    left: 80%;
    z-index: 2;
  }

  .hero .image-wrapper {
    height: 80vh;
    max-height: 850px;
    width: calc(100% + 40px);
    grid-column: 7 / 13;
    grid-row: 1 / 1;
    margin-top: 200px;
  }

  .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Overwrite white button on white background */
.colored .neutral-inverted {
  background: var(--gradient-1-background);
  background: var(--gradient-1-background-moz);
  background: var(--gradient-1-background-webkit);
  background: var(--gradient-1-background-gradient);
  filter: var(--gradient-1-background-filter);
  color: var(--foreground);
}
