/*
	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.
 */
/**
 *	Fluid sized fonts
 *	Read more here:
 *	https://css-tricks.com/snippets/css/fluid-typography/
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
.block-section.hero.should-animate {
  transition: all 900ms cubic-bezier(0.07, 0.36, 0.41, 1.01);
}

.block-section.hero.should-animate .hero__text,
.block-section.hero.should-animate .hero__scroll {
  transition: all 900ms cubic-bezier(0.07, 0.36, 0.41, 1.01);
}

.block-section.hero.should-animate figure.hero__bg img,
.block-section.hero.should-animate figure.hero__bg video {
  transition: all 900ms cubic-bezier(0.07, 0.36, 0.41, 1.01);
}

.block-section.hero.minimize {
  margin: 1.25rem auto 4.375rem auto;
  width: calc(100% - 40px);
  border-radius: var(--element-border-radius);
}

.block-section.hero.minimize .hero__text {
  left: calc(5% - 20px);
}

.block-section.hero.minimize.layout-home .hero__scroll {
  left: -1.25rem;
}

.block-section.hero.minimize.layout-landing .hero__scroll {
  right: -1.25rem;
}

@media screen and (max-width: 849px) {
  .block-section.hero.minimize {
    width: calc(100% - 20px);
  }
  .block-section.hero.minimize .hero__text {
    left: calc(5% - 10px);
  }
  .block-section.hero.minimize.layout-home .hero__scroll {
    left: -0.625rem;
  }
  .block-section.hero.minimize.layout-landing .hero__scroll {
    right: -0.625rem;
  }
}
section.hero {
  position: relative;
  z-index: 20;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
}

section.hero:not(.layout-subpage) {
  height: 110vh;
}

section.hero .circle-icon {
  background-color: var(--color__grey-lighter);
}

section.hero .circle-icon .icon:before {
  font-size: 1.3125rem;
}

section.hero .circle-icon:hover, section.hero .circle-icon:focus {
  color: var(--color__purple-dark);
}

section.hero:before, section.hero:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 50vh;
  z-index: 3;
  pointer-events: none;
}

section.hero:before {
  top: 0;
}

section.hero:after {
  bottom: 0;
}

section.hero.uses-light-text {
  color: var(--color__grey-lighter);
}

section.hero.uses-light-text:before {
  background: linear-gradient(180deg, #232229 0%, rgba(35, 34, 41, 0) 100%);
}

section.hero.uses-light-text:after {
  background: linear-gradient(0deg, #232229 0%, rgba(35, 34, 41, 0) 100%);
}

section.hero.uses-light-text ol.breadcrumbs {
  background: rgba(98, 103, 120, 0.2);
}

section.hero.uses-light-text ol.breadcrumbs a {
  color: var(--color__white);
}

section.hero.uses-dark-text {
  color: var(--color__grey-lighter);
}

section.hero.uses-dark-text:before {
  display: none;
}

section.hero.uses-dark-text:after {
  background: linear-gradient(0deg, rgba(98, 103, 120, 0.8) 0%, rgba(98, 103, 120, 0) 100%);
}

section.hero.uses-dark-text ol.breadcrumbs {
  color: var(--color__grey-dark);
}

section.hero.uses-dark-text ol.breadcrumbs a {
  color: var(--color__grey-dark);
}

section.hero .hero__text {
  position: absolute;
  left: 5%;
  z-index: 5;
  width: 50rem;
  max-width: calc(100% - 100px);
  height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (min-width: 1440px) {
  section.hero .hero__text h2 {
    width: 50.25rem;
    max-width: 100%;
  }
  section.hero .hero__text .text-wrapper > * {
    width: 50.25rem;
    max-width: 100%;
  }
}
section.hero.layout-landing .hero__text {
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

section.hero:not(.layout-subpage) .hero__text {
  top: 20vh;
}

section.hero.layout-subpage {
  height: 60vh;
}

section.hero.layout-subpage .hero__text {
  bottom: 0;
  height: auto;
  padding-bottom: 2.5rem;
}

@media screen and (min-width: 1440px) {
  section.hero.layout-subpage .hero__text {
    padding-bottom: 5.3125rem;
  }
}
section.hero .hero__scroll {
  position: absolute;
  bottom: calc(10vh + 90px);
  z-index: 5;
}

section.hero.layout-home .hero__scroll {
  left: 0;
}

section.hero.layout-landing .hero__scroll {
  right: 0;
  text-align: right;
}

section.hero figure.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

section.hero figure.hero__bg img,
section.hero figure.hero__bg video {
  max-width: unset;
  -o-object-fit: cover;
     object-fit: cover;
  width: 120vw;
  height: 120vh;
  display: block;
}
