/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/**==================================================================================================================================
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.map {
  --map-bg: var(--color__white);
  --map-text: var(--color__moss-green);
  margin: var(--spacing-block) 0;
  background: var(--map-bg);
  color: var(--map-text);
}

section.map[data-color-scheme=white-moss-green] {
  --map-bg: var(--color__white);
  --map-text: var(--color__moss-green);
}

section.map[data-color-scheme=white-blue] {
  --map-bg: var(--color__white);
  --map-text: var(--color__blue);
}

section.map[data-color-scheme=moss-green] {
  --map-bg: var(--color__moss-green);
  --map-text: var(--color__green-light);
}

section.map[data-color-scheme=beige] {
  --map-bg: var(--color__beige);
  --map-text: var(--color__black);
}

section.map[data-color-scheme=blue] {
  --map-bg: var(--color__blue);
  --map-text: var(--color__white);
}

section.map[data-color-scheme=moss-green], section.map[data-color-scheme=beige], section.map[data-color-scheme=blue] {
  margin: 0;
  padding: var(--spacing-block-small) 0;
}

section.map .map__title {
  margin: 0;
  color: inherit;
  font-family: "Noe-Display", serif;
  font-weight: 700;
  font-size: clamp(1.875rem, 2.6vw, 2.625rem);
  line-height: 1.15;
  text-wrap: balance;
  max-width: 68ch;
}

section.map .map__text {
  max-width: 68ch;
  margin-top: 1.75rem;
  color: inherit;
  text-wrap: pretty;
}

section.map .map__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem clamp(2rem, 4vw, 5rem);
  margin-top: 4.5rem;
}

section.map .map__grid.map-width--wide {
  max-width: 100% !important;
}

@media screen and (min-width: 850px) {
  section.map .map__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  section.map .map__grid[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(50% - clamp(1rem, 2vw, 2.5rem));
  }
}
section.map .map__item-title {
  margin: 0;
  color: inherit;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.3;
}

section.map .map__address {
  margin-top: 0.5rem;
  color: inherit;
  text-wrap: pretty;
}

section.map .map__embed {
  position: relative;
  margin-top: 2rem;
  aspect-ratio: 2/1;
  overflow: hidden;
  border-radius: var(--element-border-radius);
  background: var(--color__grey-light);
}

section.map .map__embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

section.map.map--anim-fade .map__title,
section.map.map--anim-fade .map__text,
section.map.map--anim-fade .map__item {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  section.map.map--anim-fade .map__title,
section.map.map--anim-fade .map__text,
section.map.map--anim-fade .map__item {
    opacity: 1;
  }
}
@media screen and (max-width: 850px) {
  section.map .map__item-title {
    font-size: 1.375rem;
  }
  section.map .map__embed {
    margin-top: 1.5rem;
  }
}
.acf-block-preview section.map.map--anim-fade .map__title,
.acf-block-preview section.map.map--anim-fade .map__text,
.acf-block-preview section.map.map--anim-fade .map__item {
  opacity: 1;
}
