/*
	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
*/
/*
	Variables for legacy dc plugins
*/
section.text-and-image {
  --text-color: var(--color__dark-grey);
  --accent-color: var(--color__blue);
  width: 100%;
  color: var(--text-color);
}

section.text-and-image .blue-color {
  color: var(--color__blue);
}

section.text-and-image .content-wrapper.fullwidth {
  display: flex;
  flex-direction: column;
  gap: 6.25rem;
}

section.text-and-image .content-wrapper.fullwidth .text-content {
  color: var(--text-color);
}

section.text-and-image .content-wrapper.fullwidth .text-content h2 {
  max-width: 37.5rem;
  text-wrap: balance;
  margin-bottom: 3.125rem;
}

section.text-and-image .content-wrapper.fullwidth .text-content .paragraph {
  max-width: 37.5rem;
  text-wrap: balance;
  margin-bottom: 1.875rem;
}

section.text-and-image .content-wrapper.fullwidth .image-content {
  width: 100%;
}

section.text-and-image .content-wrapper.fullwidth .image-content img {
  width: 107%;
  height: auto;
  display: block;
  border-top-left-radius: 4.375rem;
  border-bottom-left-radius: 4.375rem;
  max-height: 52.5rem;
  -o-object-fit: cover;
     object-fit: cover;
}

@media screen and (max-width: 850px) {
  section.text-and-image .content-wrapper.fullwidth .image-content img {
    width: 100%;
  }
}
section.text-and-image .content-wrapper.side-by-side .content-container {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 1000px) {
  section.text-and-image .content-wrapper.side-by-side .content-container {
    flex-direction: column !important;
  }
}
section.text-and-image .content-wrapper.side-by-side .content-container.right {
  flex-direction: row;
  gap: 2.5rem;
}

section.text-and-image .content-wrapper.side-by-side .content-container.right .image-content {
  flex: 0 0 55%;
}

section.text-and-image .content-wrapper.side-by-side .content-container.right .image-content.wide {
  flex: 0 0 60% !important;
}

@media screen and (max-width: 1000px) {
  section.text-and-image .content-wrapper.side-by-side .content-container.right .image-content {
    flex: 1;
    width: 100%;
  }
}
@media screen and (max-width: 1000px) {
  section.text-and-image .content-wrapper.side-by-side .content-container.right .image-content img {
    aspect-ratio: 1/1;
  }
}
section.text-and-image .content-wrapper.side-by-side .content-container.right .text-content {
  flex: 1;
  width: 100%;
}

section.text-and-image .content-wrapper.side-by-side .content-container.left {
  flex-direction: row-reverse;
  gap: 2.75rem;
}

section.text-and-image .content-wrapper.side-by-side .content-container.left .image-content {
  flex: 0 0 45%;
}

section.text-and-image .content-wrapper.side-by-side .content-container.left .image-content.wide {
  flex: 0 0 60%;
}

@media screen and (max-width: 1000px) {
  section.text-and-image .content-wrapper.side-by-side .content-container.left .image-content {
    flex: 1;
    width: 100%;
  }
}
section.text-and-image .content-wrapper.side-by-side .content-container.left .image-content img {
  aspect-ratio: 4/5;
  -o-object-fit: cover;
     object-fit: cover;
}

@media screen and (max-width: 1000px) {
  section.text-and-image .content-wrapper.side-by-side .content-container.left .image-content img {
    aspect-ratio: 1/1;
  }
}
section.text-and-image .content-wrapper.side-by-side .content-container.left .text-content {
  flex: 1;
  width: 100%;
}

section.text-and-image .content-wrapper.side-by-side .text-content {
  margin-bottom: auto;
  max-width: 43.75rem;
}

@media screen and (max-width: 1000px) {
  section.text-and-image .content-wrapper.side-by-side .text-content {
    max-width: 100%;
  }
}
section.text-and-image .content-wrapper.side-by-side .text-content h2 {
  margin-bottom: 2.5rem;
}

section.text-and-image .content-wrapper.side-by-side .text-content .paragraph p {
  margin-bottom: 1.875rem;
}

section.text-and-image .content-wrapper.side-by-side .image-content {
  margin-bottom: auto;
}

section.text-and-image .content-wrapper.side-by-side .image-content.wide img {
  border-top-left-radius: 4.375rem;
  border-bottom-left-radius: 4.375rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  aspect-ratio: 1/1;
  max-height: 50rem;
}

section.text-and-image .content-wrapper.side-by-side .image-content img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 1.875rem;
  border-bottom-left-radius: 1.875rem;
  border-top-right-radius: 1.875rem;
  border-bottom-right-radius: 1.875rem;
}
