/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
.block-section.hero {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  transition: all 1250ms ease-out;
  overflow: hidden;
}

.block-section.hero:before {
  content: "";
  display: block;
  background-color: var(--color__blue-lightest);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100svh;
}

.block-section.hero.waiting-to-animate #heroVideo {
  filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
}

.block-section.hero.waiting-to-animate .block-section-wrapper,
.block-section.hero.waiting-to-animate .hero__bg_element {
  opacity: 0;
}

.block-section.hero .block-section-wrapper {
  transition: opacity 850ms ease-in-out 350ms;
}

.block-section.hero .hero__bg_element {
  transition: all 850ms ease-in-out 350ms;
}

.block-section.hero #heroVideo {
  background-color: var(--color__blue-lightest);
  transition: all 850ms ease-out;
}

.block-section.hero:after {
  content: "";
  display: block;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.block-section.hero .hero__bg_element {
  top: -30vw;
  right: -50vw;
}

@media screen and (min-width: 1000px) {
  .block-section.hero .hero__bg_element {
    top: -30vw;
    right: -20vw;
  }
}
.block-section.hero .block-section-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  width: 90vw;
  display: flex;
  align-items: center;
  opacity: 1;
}

.block-section.hero .hero__text {
  width: 100%;
}

.block-section.hero.text-dark h1,
.block-section.hero.text-dark a,
.block-section.hero.text-dark p {
  color: var(--color__blue-dark);
}

.block-section.hero.text-light h1,
.block-section.hero.text-light a,
.block-section.hero.text-light p {
  color: var(--color__white);
}

.block-section.hero #heroVideo, .block-section.hero figure.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 5;
}

.block-section.hero #heroVideo {
  -o-object-fit: cover;
     object-fit: cover;
  transform-origin: center center;
}

.block-section.hero figure.hero__bg img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.block-section.hero .stm-arrow-link {
  margin-top: 3rem;
}

.block-section.hero .scroll-indicator {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.block-section.hero .scroll-animation {
  display: inline-block;
  position: relative;
  width: 1.3125rem;
  height: 2.0625rem;
  border-radius: 1.25rem;
  border: 0.125rem solid var(--color__white);
  margin-right: 0.625rem;
}

.block-section.hero .scroll-animation:before {
  position: absolute;
  top: 0.3125rem;
  left: calc(50% - 1px);
  height: 0.625rem;
  width: 0.09375rem;
  background-color: var(--color__white);
  content: "";
  display: block;
  animation: scroll-line 2s linear 3s infinite;
  transition: all 250ms ease-in-out;
}

@keyframes scroll-line {
  0% {
    top: 0.3125rem;
    height: 0.625rem;
  }
  45% {
    top: 1.125rem;
    height: 0.25rem;
  }
  75% {
    height: 0.5rem;
  }
  90% {
    top: 0.3125rem;
    height: 0.625rem;
  }
}
#hero__spacer {
  height: 100vh;
  position: relative;
  background-color: var(--color__white);
}

#hero__spacer:after {
  content: "";
  display: block;
  background-color: var(--color__white);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 200vh;
  z-index: 6;
  pointer-events: none;
}

body:not(.home) #hero__wrapper-fixed {
  width: 100%;
}

body:not(.hero-in-view) .block-section.hero:after,
body:not(.hero-in-view) .block-section.hero .hero__bg_element,
body:not(.hero-in-view) #heroVideo,
body:not(.hero-in-view) .hero__bg {
  display: none;
  transition: none;
}

body:not(.hero-in-view) #hero__spacer {
  opacity: 0;
}
