/*
	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: 500;
  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);
}

.grid-container {
  max-width: 70.625rem;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-column-gap: 1.875rem;
}

@media screen and (max-width: 1280px) {
  .grid-container {
    padding: 0 0.9375rem;
  }
}
/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * $size: font-size in number
 * $line-height: line-height in percentage
 * $weight: font-weight
 * $family: font-family
 * $color: font-color
 */
/**
 * 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;
  gap: 6rem;
  padding: var(--element-box-padding);
  border-radius: var(--element-border-radius);
}

.text-media .text-media__thumbnail {
  overflow: hidden;
  border-radius: var(--element-border-radius);
}

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

.text-media .text-media__title {
  font-weight: 400;
}

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

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

.text-media .text-media-box .text-media__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 2.3125rem;
}

.text-media .text-media-box .text-media__content > * {
  flex: 0 0 auto;
}

.text-media .text-media-box .text-media__content .text-media__text {
  flex: 1 1 auto;
  overflow: hidden;
}

.text-media .text-media-box .text-media__content .text-media__text .text-media__text-inner-wrapper {
  height: 100%;
  overflow: hidden;
}

.text-media .text-media-box .text-media__content .text-media__text .text-media__text-inner-wrapper.used {
  height: initial;
}

.text-media .text-media-box .text-media__content .text-media__text p {
  margin: 0;
  height: 100%;
}

.text-media .text-media-box .text-media__title {
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.text-media .text-media-box .text-media__ingress {
  margin-bottom: 1.875rem;
}

.text-media .text-media-box .text-media__tagline {
  font-weight: 500;
}

.text-media .text-media-box .dc-button {
  margin-top: 2rem;
}

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

@media (max-width: 950px) {
  .text-media .block-section-wrapper {
    flex-flow: row wrap;
    gap: 2rem;
  }
  .text-media .text-media-box {
    flex: 0 0 100%;
    height: initial;
    min-height: initial;
    order: 0 !important;
  }
  .text-media .text-media-box.text-media__thumbnail {
    height: 0;
    padding-bottom: 100%;
  }
  .text-media .text-media-box.text-media__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .text-media .text-media-box.right .text-media__content {
    padding: 2rem;
    position: relative;
  }
  .text-media .text-media-box.right .text-media__text {
    max-height: 200px;
    display: none;
  }
}
@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;
  }
}
