/*
	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: 600;
  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
*/
:root {
  --spacing-block: 7.5rem;
  --spacing-block-small: 3rem;
  --spacing-content: 5rem;
  --spacing-grid-gap: 4rem;
  --element-width-wide: 2000px;
  --element-width-content: 950px;
  --element-width-text-narrow: 850px;
  --element-border-radius: 16px;
  --element-aspect-ratio: 3 / 2;
  --font-family: "Roboto", Helvetica, arial, sans-serif;
  --font-family-display: Georgia, serif;
  --font-size-ui: 14px;
  --font-size-ui-mobile: 12px;
  --color__white: rgb(252, 252, 252);
  --color__black: rgb(24, 24, 24);
  --color__grey: rgb(102, 102, 102);
  --color__grey-light: #EDEDED;
  --color__grey-light2: #d9d9d9;
  --color__grey-light-alt: rgb(217, 217, 217);
  --color__grey-lightest: rgb(248, 248, 248);
  --color__green: rgb(57, 115, 102);
  --color__green-dark: #397366;
  --color__green-light: rgb(215, 241, 236);
  --color__green-bright: #50B275;
  --color__mint-green: #A7D9CC;
  --color__green-light2: #EEF6F4;
  --color__green-lightest: rgb(243, 248, 247);
  --color__green-lime: rgb(232, 246, 213);
  --color__blue-light: rgb(208, 238, 252);
  --color__turqoise: #EDF7F5;
  --color__text: var(--color__grey);
  --color__green-light-new: #50B275;
  --color__green-light-new-2: #C5E1CC;
  --color__green-light-new-3: #397467;
  --color__new-bg: #ebebeb;
}

body {
  background-color: var(--color__new-bg);
}

section.illustration-sub-hero.block-section.has-background {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

@media screen and (max-width: 849px) {
  section.illustration-sub-hero.block-section.has-background {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }
}
section.illustration-sub-hero.block-section.has-background.has-small-margins {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

@media screen and (max-width: 849px) {
  section.illustration-sub-hero.block-section.has-background.has-small-margins {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}
section.illustration-sub-hero.block-section {
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 849px) {
  section.illustration-sub-hero.block-section {
    margin-bottom: 1.25rem;
  }
}
section.illustration-sub-hero.block-section + .block-section {
  margin-top: 1.25rem;
}

@media screen and (max-width: 849px) {
  section.illustration-sub-hero.block-section + .block-section {
    margin-top: 1rem;
  }
}
section.illustration-sub-hero .pretitle {
  order: 1;
}

section.illustration-sub-hero .main-title {
  order: 2;
}

section.illustration-sub-hero .excerpt {
  order: 3;
}

section.illustration-sub-hero .buttons-wrapper,
section.illustration-sub-hero .link-grid,
section.illustration-sub-hero .post-under-excerpt {
  order: 4;
}

section.illustration-sub-hero .image-wrapper {
  order: 5;
}

section.illustration-sub-hero:not(.text-align-left) {
  text-align: center;
}

section.illustration-sub-hero:not(.text-align-left) h1 {
  margin-left: auto;
  margin-right: auto;
}

section.illustration-sub-hero .block-section-wrapper {
  display: flex;
  flex-direction: column;
}

section.illustration-sub-hero .pretitle {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

@media screen and (max-width: 849px) {
  section.illustration-sub-hero .pretitle {
    margin-top: 1rem;
    margin-bottom: 0.625rem;
  }
}
section.illustration-sub-hero .main-title {
  width: var(--element-width-text-narrow);
  max-width: 100%;
}

section.illustration-sub-hero.text-align-left .main-title {
  width: var(--element-width-wide);
}

@media screen and (min-width: 1440px) {
  section.illustration-sub-hero.text-align-left .main-title {
    max-width: 80%;
  }
}
section.illustration-sub-hero .buttons-wrapper {
  margin-top: 1.875rem;
}

section.illustration-sub-hero time {
  margin-bottom: 0.625rem;
}

section.illustration-sub-hero .post-under-excerpt {
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

section.illustration-sub-hero .post-under-excerpt > div {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 849px) {
  section.illustration-sub-hero .post-under-excerpt > div {
    flex-wrap: wrap;
  }
  section.illustration-sub-hero .post-under-excerpt > div .reading-estimate {
    width: 100%;
    margin-top: 1.25rem;
  }
}
section.illustration-sub-hero .link-grid {
  margin-top: 2.5rem;
}

@media screen and (max-width: 849px) {
  section.illustration-sub-hero .link-grid {
    margin-top: 1.75rem;
  }
}
section.illustration-sub-hero .categories {
  list-style: none;
  margin: 0 1.25rem 0 0;
  padding: 0;
  display: flex;
}

section.illustration-sub-hero .categories li {
  margin: 0;
  background-color: var(--color__green-lime);
  border-radius: 1.25rem;
  padding: 0.3125rem 0.9375rem;
  margin-right: 0.625rem;
}

section.illustration-sub-hero .reading-estimate {
  justify-self: flex-start;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

section.illustration-sub-hero .reading-estimate svg {
  margin-right: 0.3125rem;
}

section.illustration-sub-hero .share {
  justify-self: flex-end;
  display: flex;
  align-items: center;
  text-align: right;
}

section.illustration-sub-hero .share h3 {
  font-family: var(--font-family);
}

@media screen and (max-width: 849px) {
  section.illustration-sub-hero .share {
    width: 100%;
    margin-top: 0.9375rem;
  }
}
section.illustration-sub-hero .breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1.25rem 0;
  padding: 0;
}

section.illustration-sub-hero .breadcrumbs li:not(:last-child):after {
  content: "/";
  display: inline-block;
  margin: 0 0.625rem;
}

section.illustration-sub-hero .logo-wrapper {
  height: 3.4375rem;
  margin: 1.25rem 0 3.75rem 0;
}

section.illustration-sub-hero .logo-wrapper img {
  height: 100%;
  width: auto;
  display: block;
  margin: 0 auto;
}

section.illustration-sub-hero .image-wrapper {
  margin-top: 3.125rem;
  border-radius: var(--element-border-radius);
  overflow: hidden;
  height: auto;
  /*
  max-height: 70vh;
  @include breakpoint(small down) {
      height: 50vh;
  }
  */
}

section.illustration-sub-hero .image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  /*
  @include breakpoint(small down) {
      height: 100%;
  }
  @include breakpoint(xlarge up) {
      min-height: rem-calc(700);
  }
  */
  -o-object-fit: cover;
     object-fit: cover;
}
