/*
	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
*/
body.single-post .post-title-wrapper {
  width: 80%;
  padding-right: 14rem;
}

body.single-post .block-section-wrapper {
  justify-content: flex-end;
}

body:not(.single-post) .block-section.post-title {
  overflow: visible;
}

body:not(.single-post) .block-section.post-title .post-title-wrapper {
  position: relative;
  width: 100%;
}

body:not(.single-post) .block-section.post-title .post-title-wrapper::after {
  content: "";
  width: 300%;
  height: 300%;
  background-color: var(--color__grey);
  position: absolute;
  bottom: -2.45rem;
  left: -7vw;
  z-index: -1;
}

.block-section.post-title {
  margin-bottom: calc(var(--spacing-block) * -1 / 2);
}

.block-section.post-title .block-section-wrapper {
  display: flex;
}

.block-section.post-title .post-title-wrapper {
  padding-right: 14rem;
}

.block-section.post-title .post-title-wrapper .subtitle {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color__teal-dark);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.block-section.post-title .post-title-wrapper .title {
  font-weight: 800;
}

.block-section.post-title .title::after {
  content: "";
  display: block;
  height: 3px;
  width: 80px;
  background-color: var(--color__orange);
  margin: 3rem 0 0;
}
