/*
	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: 600;
  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
*/
:root {
  --spacing-block: 7.5rem;
  --spacing-block-small: 3rem;
  --spacing-content: 5rem;
  --spacing-grid-gap: 4rem;
  --element-width-wide: 2000px;
  --element-width-content: 950px;
  --element-width-text-narrow: 850px;
  --element-border-radius: 16px;
  --element-aspect-ratio: 3 / 2;
  --font-family: "Roboto", Helvetica, arial, sans-serif;
  --font-family-display: Georgia, serif;
  --font-size-ui: 14px;
  --font-size-ui-mobile: 12px;
  --color__white: rgb(252, 252, 252);
  --color__black: rgb(24, 24, 24);
  --color__grey: rgb(102, 102, 102);
  --color__grey-light: #EDEDED;
  --color__grey-light2: #d9d9d9;
  --color__grey-light-alt: rgb(217, 217, 217);
  --color__grey-lightest: rgb(248, 248, 248);
  --color__green: rgb(57, 115, 102);
  --color__green-dark: #397366;
  --color__green-light: rgb(215, 241, 236);
  --color__green-bright: #50B275;
  --color__mint-green: #A7D9CC;
  --color__green-light2: #EEF6F4;
  --color__green-lightest: rgb(243, 248, 247);
  --color__green-lime: rgb(232, 246, 213);
  --color__blue-light: rgb(208, 238, 252);
  --color__turqoise: #EDF7F5;
  --color__text: var(--color__grey);
  --color__green-light-new: #50B275;
  --color__green-light-new-2: #C5E1CC;
  --color__green-light-new-3: #397467;
  --color__new-bg: #ebebeb;
}

body {
  background-color: var(--color__new-bg);
}

section.text-on-image .breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1.25rem 0;
  padding: 0;
}

section.text-on-image .breadcrumbs li:not(:last-child):after {
  content: "/";
  display: inline-block;
  margin: 0 0.625rem;
}

section.text-on-image .text-on-image__media {
  position: relative;
  height: 65vh;
  border-radius: var(--element-border-radius);
  overflow: hidden;
}

section.text-on-image .text-on-image__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

section.text-on-image .text-on-image__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  top: auto;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.75rem 2.25rem;
  color: var(--color__white);
  text-align: left;
  pointer-events: none;
  isolation: isolate;
}

section.text-on-image .text-on-image__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -10rem;
  z-index: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0.625rem);
  backdrop-filter: blur(0.625rem);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0.75) 68%, rgb(0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0.75) 68%, rgb(0, 0, 0) 100%);
}

section.text-on-image .text-on-image__content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -10rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.85) 100%);
}

section.text-on-image .text-on-image__content > * {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

@media screen and (max-width: 999px) {
  section.text-on-image .text-on-image__content::before, section.text-on-image .text-on-image__content::after {
    top: -7rem;
  }
}
section.text-on-image .text-on-image__label {
  margin: 0 0 0.375rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

section.text-on-image .text-on-image__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-family-display);
  font-size: 2.8125rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  color: inherit;
}

section.text-on-image .text-on-image__subtitle {
  margin: 0;
  max-width: 32.5rem;
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  opacity: 0.95;
}
