/*
	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
*/
@media screen and (max-width: 999px) {
  section.text-and-media-advanced .block-section-wrapper {
    flex-direction: column !important;
  }
}
section.text-and-media-advanced .text-wrapper .heading-size-large {
  margin-bottom: 2.5rem;
}

section.text-and-media-advanced .text-wrapper .heading-size-large .highlight {
  color: var(--color__purple-dark);
  display: inline;
}

section.text-and-media-advanced .text-wrapper .ingress {
  font-size: 2.375rem;
  font-weight: 300;
  line-height: 3.0625rem;
  display: block;
  margin: 2.5rem 0;
  clear: both;
}

section.text-and-media-advanced .text-wrapper .ingress-smaller {
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 2.0625rem;
}

section.text-and-media-advanced .text-wrapper .text-column h3 {
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 2.0625rem;
}

@media screen and (max-width: 999px) {
  section.text-and-media-advanced .text-wrapper {
    padding-left: 0 !important;
  }
}
section.text-and-media-advanced.align-text-left .text-columns {
  max-width: var(--element-width-content);
}

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

section.text-and-media-advanced .text-columns {
  display: grid;
  grid-template-columns: 1fr;
  grid-column-gap: 2rem;
  grid-row-gap: 2.5rem;
}

@media (min-width: 599px) {
  section.text-and-media-advanced .text-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
section.text-and-media-advanced .text-columns .text-column.text_column_2 {
  grid-column: span 2;
}

@media (min-width: 768px) {
  section.text-and-media-advanced .text-columns .text-column.text_column_2 {
    grid-column: span 2;
  }
}
section.text-and-media-advanced .text-columns .text-column.text_column_1 {
  grid-column: span 2;
}

@media (min-width: 599px) {
  section.text-and-media-advanced .text-columns .text-column.text_column_1 {
    grid-column: span 1;
  }
}
section.text-and-media-advanced:not(.has-image) .text-wrapper {
  width: 66%;
}

section.text-and-media-advanced:not(.has-image) .image-wrapper {
  width: 10%;
}

section.text-and-media-advanced:not(.has-image) .max-width-col-2 {
  max-width: unset;
}

section.text-and-media-advanced.has-small-image .image-wrapper {
  order: 1;
  padding-left: 0;
}

@media screen and (min-width: 1000px) {
  section.text-and-media-advanced.has-small-image .image-wrapper {
    padding-right: var(--spacing-column-side-padding);
  }
}
section.text-and-media-advanced.has-small-image .image-wrapper img {
  max-width: 23.875rem;
}

@media screen and (max-width: 999px) {
  section.text-and-media-advanced.has-small-image .image-wrapper {
    margin-bottom: 2.5rem;
  }
  section.text-and-media-advanced.has-small-image .image-wrapper img {
    max-width: 100%;
  }
}
section.text-and-media-advanced.has-small-image .text-wrapper {
  order: 2;
  padding-right: 0;
}

@media screen and (min-width: 1000px) {
  section.text-and-media-advanced.has-small-image .text-wrapper {
    padding-left: var(--spacing-column-side-padding);
  }
}
section.text-and-media-advanced.align-text-right .block-section-wrapper {
  display: flex;
  justify-content: space-between;
}

section.text-and-media-advanced.align-text-right .block-section-wrapper .text-wrapper {
  order: 2;
  padding-right: 0;
  padding-left: var(--spacing-column-side-padding);
}

section.text-and-media-advanced.align-text-right .block-section-wrapper .image-wrapper {
  order: 1;
}
