/*
	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.text-and-media h2 + .stm-button {
  margin-top: 2.5rem;
}

section.text-and-media .text-columns-wrapper {
  padding: 1.875rem 0 2.5rem 0;
}

@media screen and (min-width: 1000px) {
  section.text-and-media .block-section-wrapper {
    display: flex;
    justify-content: space-between;
  }
  section.text-and-media .block-section-wrapper > div {
    width: 50%;
  }
  section.text-and-media .text-wrapper {
    padding-right: var(--spacing-column-side-padding);
  }
  section.text-and-media .text-columns-wrapper {
    padding: 3.125rem 0 3.75rem 0;
  }
  section.text-and-media .image-wrapper {
    padding-left: var(--spacing-column-side-padding);
  }
}
@media screen and (max-width: 999px) {
  section.text-and-media .image-wrapper {
    margin-top: 2.75rem;
  }
}
section.text-and-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--element-border-radius);
}

@media screen and (max-width: 849px) {
  section.text-and-media img {
    height: 22.0625rem;
  }
}
