/*
	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
*/
/** Side margins for content blocks (hero-text, key-figures, etc.) */
/*
	Variables for legacy dc plugins
*/
.block-section.banner.ready-to-animate {
  padding: 6.25rem 0;
  transition: all 50ms ease-out;
}

.block-section.banner.ready-to-animate .banner__bg {
  transform: scale(1.3);
  transition: all 350ms ease-out;
}

.block-section.banner.ready-to-animate .banner__content {
  transform: translateY(200px);
  transition: all 50ms ease-out;
}

.block-section.banner {
  position: relative;
  padding: 12.5rem 0;
  min-height: 55vh;
  margin-top: 100px;
  display: flex;
}

.block-section.banner.background-only {
  min-height: 70vh;
}

.block-section.banner.has-background {
  margin-top: 100px;
}

.block-section.banner figure.banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 5;
}

.block-section.banner figure.banner__bg:after {
  content: "";
  display: block;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.block-section.banner figure.banner__bg img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.block-section.banner .banner__content > p:nth-child(1),
.block-section.banner .banner__content > h2 {
  margin-top: 0;
}

.block-section.banner .block-section-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color__white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-section.banner .block-section-wrapper p {
  display: block;
}

.block-section.banner .stm-button {
  margin-top: 1.875rem;
}
