/*
	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.logo-module {
  --logo-gap: clamp(3rem, 6vw, 6rem);
  --border-radius: 20px;
  --logo-bg: transparent;
  --logo-fg: var(--color__moss-green);
  --logo-fg-contrast: var(--color__white);
  --logo-card-border: color-mix(in srgb, var(--logo-fg) 30%, transparent);
  --logo-arrow-border: color-mix(in srgb, var(--logo-fg) 40%, transparent);
  --logo-track: color-mix(in srgb, var(--logo-fg) 25%, transparent);
  border-top-right-radius: var(--border-radius);
  border-top-left-radius: var(--border-radius);
  background-color: var(--logo-bg);
  overflow-x: clip;
  margin: var(--spacing-block) 0;
  /* 	.block-section-wrapper {
  		padding: rem-calc(60) 0 rem-calc(120);
  	} */
  /* --- Marquee -------------------------------- */
  /* --- Slider: 8 boxes, the logos slide vertically ------------------------ */
}

section.logo-module[data-color-scheme=beige] {
  --logo-bg: var(--color__beige);
  --logo-fg: var(--color__black);
  --logo-fg-contrast: var(--color__beige);
}

section.logo-module[data-color-scheme=moss-green] {
  --logo-bg: var(--color__moss-green);
  --logo-fg: var(--color__green-light);
  --logo-fg-contrast: var(--color__moss-green);
}

section.logo-module[data-color-scheme=beige], section.logo-module[data-color-scheme=moss-green] {
  margin: 0;
  padding: 3.75rem 0 7.5rem;
}

@media screen and (max-width: 850px) {
  section.logo-module[data-color-scheme=beige], section.logo-module[data-color-scheme=moss-green] {
    padding: 3.75rem 0;
  }
}
section.logo-module .logo-module__title {
  margin-bottom: 2.5rem;
  color: var(--logo-fg);
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
}

section.logo-module[data-layout=marquee] .logo-module__title {
  text-align: center;
  color: var(--color__black);
  margin-bottom: 3.5rem;
}

section.logo-module .logo-module__marquee {
  overflow: hidden;
  padding-bottom: 2rem;
}

section.logo-module .logo-module__track {
  display: flex;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  gap: var(--logo-gap);
}

section.logo-module .logo-module__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--logo-gap);
}

section.logo-module .logo-module__item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

section.logo-module .logo-module__item .logo-module__logo {
  display: block;
  width: auto;
  height: clamp(1.75rem, 3vw, 2.75rem);
  -o-object-fit: contain;
     object-fit: contain;
}

section.logo-module .logo-module__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

section.logo-module .logo-module__box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/4;
  border: 1px solid var(--logo-card-border);
  border-radius: var(--element-border-radius);
}

section.logo-module .logo-module__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 2rem);
  visibility: hidden;
  opacity: 0;
}

section.logo-module .logo-module__slide.is-current {
  visibility: visible;
  opacity: 1;
}

section.logo-module .logo-module__slide .logo-module__logo {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 55%;
  -o-object-fit: contain;
     object-fit: contain;
}

section.logo-module .logo-module__slide .logo-module__text {
  width: 100%;
  margin: 0;
  color: var(--logo-fg);
  font-family: "Noe-Display", serif;
  font-size: clamp(1.25rem, 1.6vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
}

section.logo-module .logo-module__footer {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

section.logo-module .logo-module__footer[hidden] {
  display: none;
}

section.logo-module .logo-module__progress {
  display: flex;
  flex: 1;
  gap: 1.25rem;
}

section.logo-module .logo-module__progress-segment {
  flex: 1;
  height: 0.25rem;
  border-radius: 0.125rem;
  background: var(--logo-track);
  transition: background-color 0.3s var(--ease__smooth);
}

section.logo-module .logo-module__progress-segment.is-active {
  background: var(--logo-fg);
}

section.logo-module .logo-module__progress-segment[hidden] {
  display: none;
}

section.logo-module .logo-module__nav {
  display: flex;
  gap: 0.75rem;
}

section.logo-module .logo-module__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: transparent;
  border: 1px solid var(--logo-arrow-border);
  border-radius: var(--element-border-radius);
  color: var(--logo-fg);
  cursor: pointer;
  transition: background-color 0.3s var(--ease__smooth), border-color 0.3s var(--ease__smooth), color 0.3s var(--ease__smooth);
}

section.logo-module .logo-module__arrow svg {
  display: block;
  width: 1.375rem;
  height: auto;
}

section.logo-module .logo-module__arrow svg path {
  stroke: currentColor;
}

section.logo-module .logo-module__arrow--prev svg {
  transform: scaleX(-1);
}

section.logo-module .logo-module__arrow:hover, section.logo-module .logo-module__arrow:focus-visible {
  background: var(--logo-fg);
  border-color: var(--logo-fg);
  color: var(--logo-fg-contrast);
}

@media screen and (max-width: 850px) {
  section.logo-module {
    --logo-gap: 2.5rem;
  }
  section.logo-module .logo-module__title {
    margin-bottom: 2.5rem;
  }
  section.logo-module .logo-module__item .logo-module__logo {
    height: 2.25rem;
  }
  section.logo-module .logo-module__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  section.logo-module .logo-module__box {
    aspect-ratio: 2/1;
  }
  section.logo-module .logo-module__box:nth-child(n+5) {
    display: none;
  }
  section.logo-module .logo-module__footer {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  section.logo-module .logo-module__progress {
    gap: 0.5rem;
  }
  section.logo-module .logo-module__arrow {
    width: 2.75rem;
    height: 2.75rem;
  }
  section.logo-module .logo-module__arrow svg {
    width: 1.125rem;
  }
}
