/*
	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
*/
.text-media {
  position: relative;
}

.text-media .block-section-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.text-media .text-media__thumbnail {
  overflow: hidden;
}

.text-media .text-media__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.text-media .text-media-box {
  position: relative;
  flex: 0 50%;
  display: flex;
  align-items: center;
}

.text-media .text-media-box.right {
  padding: 6.25rem;
  align-self: stretch;
}

.text-media .text-media-box .text-media__content {
  position: relative;
  z-index: 1;
}

.text-media .text-media-box .text-media__tagline {
  display: inline-block;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 2.5rem;
}

.text-media .text-media-box .text-media__title {
  color: var(--color-green-dark);
  margin-bottom: 1em;
}

.text-media .text-media-box .stm-button {
  margin-top: 1rem;
}

.text-media.is-style-text-left .text-media__thumbnail {
  order: 2;
}

.text-media.has-two-images .text-media__thumbnail {
  overflow: visible;
  position: relative;
}

.text-media.has-two-images .text-media__thumbnail img {
  width: 55%;
}

.text-media.has-two-images .text-media__thumbnail img.original {
  visibility: hidden;
  opacity: 0;
  width: 100%;
}

.text-media.has-two-images .text-media__thumbnail img:first-child {
  position: absolute;
  top: 0;
  left: 0;
}

.text-media.has-two-images .text-media__thumbnail img:nth-child(2) {
  position: absolute;
  bottom: 0;
  right: 0;
}

@media (max-width: 950px) {
  .text-media .block-section-wrapper {
    flex-flow: row wrap;
  }
  .text-media .text-media-box {
    flex: 0 0 100%;
    height: initial;
    min-height: initial;
    order: 0 !important;
  }
  .text-media .text-media-box img {
    -o-object-fit: none;
       object-fit: none;
    position: static;
  }
  .text-media .text-media-box.right {
    padding: 4rem 0 0;
  }
  .text-media .text-media-box.right .text-media__content {
    padding: 2rem;
  }
}
@media (max-width: 500px) {
  .text-media .text-media-box.right .text-media__content {
    padding: 1rem;
  }
  .text-media .text-media-box.right .text-media__content .text-media__title {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
  }
}
