hr{
  border-top-width: 1px !important;
  border-color: var(--color-black);
  opacity: 1;
  padding-bottom: 1rem;
}
img{max-width: 100%;}

.hyphens-auto{
  hyphens: auto;
}

/* .material-symbols-rounded {
  font-variation-settings:
  'FILL' 0,
  'wght' 200,
  'GRAD' 0,
  'opsz' 24
} */
.btn-close{
  --bs-btn-close-bg: transparent;
  --bs-btn-close-color: var(--color-white);
  width: 40px;
  height: 40px;
  line-height: 1;
  box-shadow: none !important;
}
.btn-close:after{
  content: "\e5cd";
  font-family: 'Material Symbols Sharp';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  font-size: 2rem;
}

.spacer.spacer-header{
  display: block;
  height: 125px;
}
.spacer.spacer-100{
  display: block;
  height: 100px;
}

.container-fluid{
  --bs-gutter-x: 6rem;
}
.container-fluid.gx-0{
  --bs-gutter-x: 0;
}

@media (max-width: 1199px) {
  .container-fluid{
    --bs-gutter-x: 3rem;
  }
}
@media (min-width: 1900px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: var(--wp--style--global--content-size);
    }
}

.placeholder-image{
  background-color: var(--color-green-dark);
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-image > img{
  opacity: .1;
  width: 100px;
  height: auto;
}
.wp-block-gallery.has-nested-images{
  display: flex;
}


/*------------------------------------*\
  Header
\*------------------------------------*/
.navbar-brand svg{
  width: 200px;
  transition: all .15s ease;
}
@media (max-width: 450px) {
  .navbar-brand svg{
    width: 100%;
  }
}

body > header{
  z-index: 99;
}
body.scroll > header{
  box-shadow: var(--bs-box-shadow);
  /* padding-top: 0 !important;
  padding-bottom: 0 !important; */
}
body > header::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    backdrop-filter: blur(15px);
    background-color: rgba(11, 11, 19, 0.69);
    opacity: 0;
    transition: .35s ease;
}

body.scroll > header::before{
  opacity: 1;
}



/*------------------------------------*\
  Navigation
\*------------------------------------*/

body > header .offcanvas-header{
  padding-bottom: 0;
}

#menu-huvudmeny-hoger{
  flex-direction: row;
  gap: .5rem;
  margin-right: 1.5rem;
}

.navbar-toggler{
  --bs-navbar-toggler-padding-y: 0;
  --bs-navbar-toggler-padding-x: 0;
  --bs-navbar-color: #fff;
  --bs-border-width: 0;
  color: var(--color-white);
  box-shadow: none !important;
}
.navbar-toggler > span{font-size: 40px;}
.navbar-nav{
  --bs-nav-link-font-weight: 500;
  --bs-nav-link-font-size: 16px;
  --bs-navbar-nav-link-padding-x: 1.5rem;
  --bs-nav-link-padding-y: .8rem;
  --bs-nav-link-border-radius: 0;
  --bs-nav-link-color: var(--color-white);
  --bs-navbar-hover-color: var(--color-grey-light);
  /* --bs-nav-link-hover-bg: var(--color-grey-light); */
  --bs-navbar-active-color: var(--color-white);

}
.nav-link{
  letter-spacing: .06rem;
  border-radius: var(--bs-nav-link-border-radius);
}
.nav-link:hover{
  background-color: var(--bs-nav-link-hover-bg);
}
.navbar-nav .dropdown-menu{
  --bs-dropdown-bg: transparent;
}
/* .navbar-nav .dropdown-toggle{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
} */


.dropdown-menu{
  box-shadow: var(--bs-box-shadow);
}

.navbar-nav .wp-block-button__link{
  --bs-btn-border-color: var(--color-white);
  --bs-btn-color: var(--color-white);
  --bs-btn-font-size: 16px;
}

.navbar-nav .dropdown-menu > li.dropdown-term-heading{
  font-weight: 500;
  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
  color: var(--bs-dropdown-link-color);
}
.navbar-nav .dropdown-menu > li.dropdown-term-heading:not(:first-of-type){
  margin-top: 1rem;
}

.navbar-nav .dropdown-menu a span.nav-categories{
  display: block;
  font-weight: 400;
  font-size: .9em;
  opacity: .5;
}


@media (min-width: 1200px) {

  /* .navbar-nav a[data-bs-toggle]:after{
    transform: inherit;
    margin-left: .5rem;
  } */
  .navbar-nav .dropdown-menu{
    --bs-dropdown-link-color: var(--color-black);
    --bs-dropdown-bg: var(--color-grey-light);
    --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-link-hover-color: var(--color-black);
    --bs-dropdown-font-size: 17px;
    --bs-dropdown-link-active-bg: transparent;
    --bs-dropdown-padding-y: 3px;
    --bs-dropdown-padding-x: 3px;
    --bs-dropdown-item-padding-x: 1.8rem;
    --bs-dropdown-item-padding-y: 0.5rem;
    --bs-dropdown-item-border-radius: 0;
    --bs-dropdown-font-weight: 500;
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-min-width: 20rem;
    --bs-dropdown-border-width: 0;
  }


  .dropdown-toggle::after{
    border-right: unset;
    border-left: unset;
    vertical-align: unset;
    border-top: unset;
  }

  .navbar-nav > li > a:not(.wp-block-button__link):after {
    content: "";
    border-bottom: 2px solid var(--color-white);
    display: block;
    transform: translateY(8px);
    margin-left: 0;
    width: 0%;
    opacity: 0;
    transition: all .35s ease;
  }

  .navbar-nav > li.current-page-ancestor > a:after,
  .navbar-nav > li.current_page_item > a:after{
    width: 100% !important;
      opacity: 1;
  }

  .navbar-nav > li:hover > a:after{
    width: 100%;
    opacity: 1;
  }

  .dropdown-menu .dropdown-item:hover, .dropdown-menu .nav-link:hover{
    text-decoration: underline;
  }

  .navbar-nav .dropdown-header{
    padding: 0 1.8rem;
    --bs-dropdown-header-color: var(--color-black);
  }


  /* shared by normal dropdowns and mega menu */
  .navbar-nav .dropdown-menu .mega-col {
      flex: 0 0 50%;
      max-width: 50%;
      padding-right: 24px;
      box-sizing: border-box;
  }
  .navbar-nav .dropdown-menu .mega-col--single {
      flex: 0 0 100%;
      max-width: 100%;
      padding-right: 0;
  }
  .navbar-nav a.mega-col__heading {
      display: block;
      font-weight: 500;
      margin-bottom: 15px;
      text-decoration: none;
      line-height: 1.4;
      color: var(--color-black);
  }
  .navbar-nav a.mega-col__heading:hover,
  .navbar-nav a.mega-subitem:hover {
      text-decoration: underline;
  }
  .navbar-nav .submenu-items {
      list-style: none;
      margin: 0;
      padding: 0;
  }
  .navbar-nav .submenu-items li {
      margin-bottom: 10px;
  }
  .navbar-nav a.mega-subitem,
  .navbar-nav a.dropdown-item
   {
      display: block;
      text-decoration: none;
      line-height: 1.5;
      font-weight: 400;
      color: var(--color-black);
      white-space: normal;
  }
}



/*------------------------------------*\
  Mega menu
\*------------------------------------*/

@media (min-width: 1200px) {
  .navbar-nav li.mega-menu{
    position: inherit;
  }

  .navbar-nav .mega-panel.dropdown-menu {
    display: none;
    flex-direction: row;
    width: 35vw;
    min-width: 700px;
    min-height: 350px;
    padding: 0;
    /* border: 2px solid var(--color-grey-light); */
    background: var(--color-grey-light);
    color: var(--color-black);
    font-size: var(--bs-dropdown-font-size);
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-nav .mega-panel.dropdown-menu.show {
    display: flex;
  }

  .navbar-nav .mega-panel__left {
    flex: 0 0 40%;
    overflow: hidden;
  }

  .navbar-nav .mega-panel-selected-post {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: #222;
  }
  .mega-panel-selected-post a .material-symbols-sharp{
    transition: transform .35s ease;
  }
  .mega-panel-selected-post a:hover .material-symbols-sharp{
    transform: translateX(10px);
  }

  .navbar-nav .mega-panel__right {
    flex: 1;
  }

  .navbar-nav .mega-panel__title {
    margin-bottom: 2rem;
  }

  .navbar-nav .mega-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .navbar-nav .mega-row {
    display: flex;
    flex-wrap: wrap;
  }

  .navbar-nav .mega-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 24px;
    box-sizing: border-box;
  }



}



@media (max-width: 1199px) {

  .navbar-nav{
    --bs-nav-link-color: var(--color-white);
    --bs-navbar-hover-color: var(--color-white);
    --bs-nav-link-hover-bg: transparent;
    --bs-navbar-active-color: var(--color-white);
    --bs-nav-link-hover-bg: transparent;
    --bs-nav-link-border-radius: 0;
  }

  .navbar-nav .dropdown-toggle{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .navbar-nav a[data-bs-toggle]:after{
    content: "\e313";
    font-family: 'Material Symbols Sharp';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    border: 0;
    transform: rotate(-90deg);
    transition: transform .35s
    ease;
    font-size: 1.5em;
    margin: 0;
    min-width: 23px;
  }

  ul.navbar-nav > li{
    line-height: 1.4;
    /* border-bottom: 1px solid var(--color-grey-light); */
  }

  ul.navbar-nav li > .dropdown-item {
    /* border-top: 1px solid #49464f1c; */
    white-space: normal;
  }

  .navbar-nav .dropdown-toggle > span {
    position: relative;
  }
  .navbar-nav a[data-bs-toggle][aria-expanded="true"]:after {
    transform: rotate(0deg);
  }
  ul.navbar-nav .nav-link,
  ul.navbar-nav .dropdown-item,
  .navbar-nav .mega-menu a
  {
    padding: 1rem 1.8rem;
    margin: 0;
    position: relative;
    transition: none;
  }
  .navbar-nav .mega-menu .dropdown-menu a{
    display: block;
  }

  ul.navbar-nav .nav-link[aria-expanded="true"]{
    background-color: var(--color-green-dark);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  .navbar-nav .dropdown-menu{
    --bs-dropdown-bg: var(--color-green-dark);
    --bs-dropdown-link-color: var(--color-white);
    --bs-dropdown-link-active-color: var(--color-white);
    --bs-dropdown-border-width: 0;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: .5rem;
    --bs-box-shadow: none;
    --bs-dropdown-font-weight: 500;
    --bs-dropdown-font-size: 16px;
    --bs-dropdown-border-radius: 0;
    margin: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;

    height: 0%;
    overflow: hidden;
  }
  .navbar-nav .dropdown-menu > li:first-of-type{
    margin-top: -.5rem;
  }

  .navbar-nav .mega-menu .mega-panel__left,
  .navbar-nav .mega-menu .mega-panel__title,
  .navbar-nav .dropdown-header{
    display: none;
  }
  .navbar-nav .mega-menu .mega-panel__right{
    padding: 0 !important;
  }

  .navbar-nav .dropdown-menu a.mega-col__heading,
  .navbar-nav .dropdown-menu > li.dropdown-term-heading {
    font-weight: 500;
    display: block;
    padding: 1rem 1.8rem;
  }
  .navbar-nav .dropdown-menu .submenu-items{
      margin: 0;
      padding: 0;
      list-style: none;
  }
  .navbar-nav .dropdown-menu > li.dropdown-term-heading {
    margin-top: 0 !important;
  }
  .navbar-nav .dropdown-menu .dropdown-item, .navbar-nav .dropdown-menu .mega-subitem{
    opacity: .6;
  }

}

@media (max-width: 550px) {
  .contact-icon .nav-link{
    padding: .788rem 1rem !important;
  }
  .contact-icon .nav-link span {
    display: none;
  }
  .contact-icon .nav-link::after {
    content: "\e0b0";
    font-family: 'Material Symbols Sharp';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    display: inline-block;
  }
}




/*------------------------------------*\
  Page
\*------------------------------------*/
.jumbotron h1{
  margin: 0;
  font-size: var(--fs-jumbotron);
  hyphens: auto;
}

/*------------------------------------*\
  Bolton animation
\*------------------------------------*/
#bolton-ani{width: 70%; min-height: 40vw;}
@media (max-width: 768px) {
  #bolton-ani{width: 100%;}
}

/*------------------------------------*\
  References
\*------------------------------------*/
.references-grid > div{

}
.references-grid > div:nth-child(even) > div:first-of-type{
  order: 2;
}
@media (max-width: 1199px) {
  .references-grid > div > div:first-of-type{
    order: 1;
  }
}

/*------------------------------------*\
  Modals
\*------------------------------------*/
.modal{
  --bs-modal-border-width: 0;
  --bs-modal-header-border-width: 0;
  --bs-modal-footer-border-width: 0;
  --bs-modal-header-padding: 2rem;
  --bs-modal-padding: 2rem;
  /* --bs-modal-bg: #fff; */
  /* --bs-modal-color: var(--bs-body-color); */
  --bs-modal-border-radius: 0;
}

.modal-title{margin-top: 0;}
.modal-body{padding-top: 0; padding-bottom: 0;}

.modal .btn-close{
    --bs-btn-close-color: var(--color-green-dark);
    position: absolute;
    top: 1.5rem;
    right: 1rem;
}

@media (max-width: 1199px) {
  .modal{
    --bs-modal-header-padding: 1rem;
    --bs-modal-padding: 1rem;
  }
}





/*------------------------------------*\
  Glow
\*------------------------------------*/
.scene-wrap{
  pointer-events: none;
}

.glow-scene {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  overflow: hidden;
  mix-blend-mode: lighten;
  height: 100%;
}
.glow-scene .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.glow-scene .layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Scenes */

.scene-wrap.scene-1{
  position: absolute;
  height: 120%;
  width: 100%;
  overflow: hidden;
  left: 0;
  margin-top: -10%;
}
.scene-1 .glow-scene .layer svg{
  width: 100vh;
  min-width: 900px;
  height: auto;
}

.scene-wrap.scene-2{
  position: absolute;
  height: 120%;
  width: 100%;
  overflow: hidden;
  left: 0;
  margin-top: -10%;
}
.scene-2 .glow-scene .layer svg{
  position: absolute;
  width: 100vh;
  min-width: 900px;
  height: auto;
}
.scene-2 .glow-scene .layer:first-child svg{
  transform: translateX(-55%);
}
.scene-2 .glow-scene .layer:last-child svg{
  transform: translateY(20%);
  left: 90%;
  width: 80vh;
}

.scene-2.scene-reverse .glow-scene .layer:last-child svg{
  left: 80%;
}
.scene-2.scene-reverse .glow-scene .layer:first-child svg{
  transform: translateX(-75%);
}

@keyframes wander {
  0%   { transform: translate(0px, -50px); }
  50%  { transform: translate(0px,  50px); }
  100% { transform: translate(0px, -50px); }
}
.wander-animation {
  animation: wander 10s ease-in-out infinite;
}
@media (max-width: 1399px) {
  .scene-wrap.scene-1{
    left: -30%;
    margin-top: -20%;
  }
  .scene-1 .glow-scene .layer svg{
    width: 100vh;
    height: auto;
  }
  .scene-2 .glow-scene .layer:last-child svg{
    left: 80%;
  }
}
@media (max-width: 991px) {
  .scene-wrap.scene-1{
    left: 0%;
  }
  .scene-1 .glow-scene .layer svg{
    transform: translate(-40%, 0%);
  }

  .scene-2 .glow-scene .layer:first-child svg{
    transform: translateX(-60%);
  }
}

/*------------------------------------*\
  Glow background
\*------------------------------------*/
.has-glow-background{
  position: relative;
}
.glow-background{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.glow-background .glow-scene svg{
  width: 200%;
  height: 200%;
  display: block;
  transform: translate(-50%, -10%);
}




/*------------------------------------*\
  Swiper JS
\*------------------------------------*/
/* .swiper {
 width: 100%;
 height: 600px;
}

.swiper-slide {
 text-align: center;
 font-size: 18px;
 display: flex;
 justify-content: center;
 align-items: center;
}

.swiper-slide img {
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
} */

/*------------------------------------*\
  Swiper Hero Firstpage Jumotron
\*------------------------------------*/
.hero-swiper {
  width: 100%;
  height: 100vh;
  overflow:  hidden;
}

.hero-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  color: white;
  font-size: 2rem;
  text-align: left;
}

.hero-swiper .scene{
  height: 100%;
  width: 100%;
}

.hero-swiper .scene{
  position: relative;
}
.hero-swiper .scene > li{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}


.hero-swiper .scene .content-start {
  position: absolute;
  left: 15%;
  text-align: right;
  width: 30vw;
  max-width: 600px;
  /* transition: top 1s ease; */
    top: 40%;
  font-size: var(--fs-xlarge);
  line-height: 1.3;
}

.hero-swiper .swiper-slide-prev .content-start{
  top: -100%;
}
.hero-swiper .swiper-slide-active .content-start{
  top: 40%;
}
.hero-swiper .swiper-slide-next .content-start{
  top: 100%;
}

.hero-swiper .scene .content-end {
  position: absolute;
  bottom: 30%;
  right: 15%;
  width: 30vw;
  max-width: 600px;
  transition: bottom 1.2s ease;
  font-size: var(--fs-medium);
}

.hero-swiper .swiper-slide-prev .content-end{
  bottom: 100%;
}
.hero-swiper .swiper-slide-active .content-end{
  bottom: 30%;
}
.hero-swiper .swiper-slide-next .content-end{
  bottom: -100%;
}
.hero-swiper .scene .image-fg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-swiper .scene .image-fg > img{
  width: 50%;
  height: auto;
}

.hero-swiper .scene .image-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-swiper .scene .image-bg > img{
  width: 60%;
  height: auto;
}

.hero-swiper .scene .image-bg.ib-loop{
  width: 150vw;
  height: 150vh;
  background-repeat: repeat;
  background-position: center;
}
.hero-swiper .scene .image-bg.ib-bottom{
  top: 130%;
  width: 80%;
}
.hero-swiper .scene .image-bg.ib-bottom > img {
  width: 100%;
  animation-name: earthrotation;
  animation-duration: 240s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes earthrotation {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(70deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(-70deg); }
  100% { transform: rotate(0deg); }
}





/* .hero-swiper .scene .image-bg svg{
  height: auto;
  width: 100vh;
} */
@media (max-width: 1920px) {
  .hero-swiper .scene .content-start{
    left: 7%;
  }
  .hero-swiper .scene .content-end{
    right: 7%;
  }
}

@media (max-width: 1199px) {
  .hero-swiper .scene .image-bg{
    width: 90%;
  }
  .hero-swiper .scene .image-fg{
    width: 70%;
  }

  .hero-swiper .scene .image-bg > img,
  .hero-swiper .scene .image-fg > img{
    width: 90%;
  }

  .hero-swiper .scene .image-bg.ib-bottom{
    top: 110%;
    width: 150%;
  }

  .hero-swiper .scene .image-bg svg{
    height: auto;
    width: 80vh;
  }
  .hero-swiper .scene .content-start{
    width: 100%;
    text-align: left;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 2rem;
  }
  .hero-swiper .swiper-slide-active .content-start{
    top: 20%;
  }
  .hero-swiper .scene .content-end{
    width: 100%;
    right: 0%;
    padding: 0 2rem;
    text-align: right;
  }
  .hero-swiper .swiper-slide-active .content-end{
    bottom: 5%;
  }
}

@media (max-width: 550px) {
  .hero-swiper .scene .image-bg.ib-bottom{
    top: 90%;
    width: 170%;
  }
}




/*------------------------------------*\
  Archive
\*------------------------------------*/

.archive-filters a{
  text-decoration: none !important;
}
.archive-filters a.archive-filter:after{
  content: "";
  border-bottom: 2px solid var(--color-white);
  display: block;
  transform: translateY(2px);
  margin-left: 0;
  width: 0%;
  opacity: 0;
  transition: all .35s ease;
}
.archive-filters a.archive-filter.active:after{
  width: 100%;
  opacity: 1;
}

.archive-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.cpt-archive h2{margin-bottom: 0;}

.archive-item {
    width: 100%;
}
 .archive-item.a-col-33 {
    width: calc(33.333% - 1.5rem);
}
.archive-item.a-col-66 {
    width: calc(66.666% - 1.5rem);
}
.archive-item--cta.a-col-66{
  max-height: 500px;
}

@media (max-width: 1199px) {
    .archive-item {
        width: calc(50% - 1.5rem) !important;
    }
    .cpt-archive .cover-image {
        aspect-ratio: 1 / 1;
    }

    .archive-item--cta.archive-item{
      width: 100% !important;
    }
}

@media (max-width: 767px) {
    .cpt-archive .archive-grid {
        gap: 1.5rem;
    }
    .cpt-archive .archive-item {
        width: 100% !important;
    }
}







/*------------------------------------*\
  Footer
\*------------------------------------*/

@media (max-width: 450px) {
  footer .has-kwb-medium-font-size{
    --wp--preset--font-size--kwb-medium: var(--fs-normal);
  }
}

footer p, footer h3{margin: 0;}

footer a:not(.wp-block-button__link):hover{
  text-decoration: underline;
}

footer .widget_nav_menu h3{
  font-size: var(--fs-h4);
  margin-bottom: 1.5rem;
}
footer .widget_nav_menu ul{
  list-style: none;
  padding: 0;
}
footer .widget_nav_menu ul > li{
  margin-bottom: .4rem;
  font-size: var(--fs-small);
}
