/*
	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: 500;
  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);
}

.grid-container {
  max-width: 70.625rem;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-column-gap: 1.875rem;
}

@media screen and (max-width: 1280px) {
  .grid-container {
    padding: 0 0.9375rem;
  }
}
/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * $size: font-size in number
 * $line-height: line-height in percentage
 * $weight: font-weight
 * $family: font-family
 * $color: font-color
 */
/**
 * 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
*/
section.fact-boxes {
  overflow: visible;
  padding-top: 4rem;
  padding-bottom: 9rem;
  margin-bottom: 0;
  overflow: hidden;
}

section.fact-boxes header {
  display: block;
  margin-bottom: 3.125rem;
}

section.fact-boxes header h2 {
  text-align: center;
}

section.fact-boxes .fact-boxes__wrapper {
  display: flex;
  gap: 3rem 0;
  padding: 0;
}

@media screen and (max-width: 999px) {
  section.fact-boxes .fact-boxes__wrapper {
    flex-flow: row wrap;
  }
}
section.fact-boxes .fact-boxes__wrapper .fact-boxes__item-wrapper {
  flex: 0 0 33%;
  min-width: 330px;
  margin-left: 0;
  margin-right: 0;
}

section.fact-boxes .fact-boxes__wrapper .fact-boxes__item-wrapper:nth-child(1) .fact-boxes__item {
  transform: rotate(2deg);
}

section.fact-boxes .fact-boxes__wrapper .fact-boxes__item-wrapper:nth-child(2) .fact-boxes__item {
  transform: rotate(-5deg) translateY(40px);
  z-index: 2;
}

section.fact-boxes .fact-boxes__wrapper .fact-boxes__item-wrapper:nth-child(3) .fact-boxes__item {
  transform: rotate(1deg) translateY(-15px);
}

section.fact-boxes .fact-boxes__wrapper .fact-boxes__item-wrapper:nth-child(3) .fact-boxes__item + .fact-boxes_quote {
  flex: 1 0 33%;
}

section.fact-boxes .fact-boxes__wrapper .fact-boxes__item {
  padding: var(--element-box-padding-small);
  border-radius: var(--element-border-radius-small);
}

section.fact-boxes .fact-boxes__wrapper .fact-boxes__item h2 {
  font-weight: 500;
}

section.fact-boxes .fact-boxes__wrapper .fact-boxes_quote {
  flex: 0 0 calc(33% - 3rem);
  align-self: center;
  display: flex;
  justify-content: flex-end;
  padding: 3rem;
}

section.fact-boxes .fact-boxes__wrapper .fact-boxes_quote q {
  max-width: 300px;
}

@media only screen and (max-width: 740px) {
  section.fact-boxes .fact-boxes__wrapper {
    justify-content: center;
    gap: 0rem 0;
    margin-bottom: 0;
    padding: 0;
    margin-top: 3rem;
  }
  section.fact-boxes .fact-boxes__wrapper .fact-boxes_quote,
section.fact-boxes .fact-boxes__wrapper .fact-boxes__item-wrapper {
    flex: 0 0 100%;
    min-width: initial;
    max-width: 380px;
  }
  section.fact-boxes .fact-boxes__wrapper .fact-boxes_quote {
    display: block;
  }
  section.fact-boxes .fact-boxes__wrapper .fact-boxes__item-wrapper:nth-child(2) .fact-boxes__item {
    transform: rotate(-5deg);
  }
  section.fact-boxes .fact-boxes__wrapper .fact-boxes__item-wrapper:nth-child(3) .fact-boxes__item {
    transform: rotate(1deg);
  }
}
