/*
	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
*/
section.hero-subpage {
  position: relative;
  z-index: 20;
  margin-top: 0;
  padding-top: var(--spacing-block);
}

@media screen and (max-width: 849px) {
  section.hero-subpage {
    padding-top: var(--spacing-block-mobile);
  }
}
section.hero-subpage .block-section-wrapper {
  padding-top: 7vh;
}

@media screen and (max-width: 849px) {
  section.hero-subpage .block-section-wrapper {
    padding-top: 5.625rem;
  }
}
section.hero-subpage h1 {
  margin-bottom: 0.9375rem;
}

@media screen and (min-width: 1000px) {
  section.hero-subpage .main-title {
    max-width: 66%;
  }
}
section.hero-subpage hr {
  margin-top: 3.75rem;
}

section.hero-subpage .text-wrapper p {
  width: 40.9375rem;
  max-width: 100%;
}

section.hero-subpage .text-wrapper p:nth-child(1) {
  width: 67.625rem;
  font-weight: 300;
  font-size: 2.375rem;
  line-height: 1.3;
}

section.hero-subpage .text-wrapper p:nth-child(1) {
  font-size: 24px;
}

@media screen and (min-width: 480px) {
  section.hero-subpage .text-wrapper p:nth-child(1) {
    font-size: calc(24px + 14 * (100vw - 480px) / 1120);
  }
}
@media screen and (min-width: 1600px) {
  section.hero-subpage .text-wrapper p:nth-child(1) {
    font-size: 38px;
  }
}
section.hero-subpage .post-details {
  display: flex;
  justify-content: space-between;
  padding-bottom: 3.125rem;
}

@media screen and (max-width: 849px) {
  section.hero-subpage .post-details {
    padding-bottom: 1.875rem;
  }
}
section.hero-subpage .category,
section.hero-subpage time {
  display: inline-block;
}

@media screen and (max-width: 849px) {
  section.hero-subpage .category {
    display: none;
  }
}
section.hero-subpage + .block-section.images {
  margin-top: calc(var(--spacing-block) * -1);
}

@media screen and (max-width: 849px) {
  section.hero-subpage + .block-section.images {
    margin-top: calc(var(--spacing-block-mobile) * -1.5);
  }
}
@media screen and (max-width: 849px) {
  section.hero-subpage {
    padding-bottom: calc(var(--spacing-block-mobile) / 2);
  }
  section.hero-subpage time {
    position: absolute;
    bottom: calc(var(--spacing-block-mobile));
    left: 1.25rem;
  }
}
