/*
	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
*/
.block-section.article-hero {
  --hero-height: 64svh;
  position: relative;
  overflow: hidden;
  margin-block: 0;
}

@supports not (height: 1svh) {
  .block-section.article-hero {
    --hero-height: 64vh;
  }
}
.block-section.article-hero #hero__wrapper-fixed {
  position: relative;
  min-height: var(--hero-height);
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
}

.block-section.article-hero #hero__wrapper-fixed .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.block-section.article-hero #hero__wrapper-fixed .hero__bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.block-section.article-hero #hero__wrapper-fixed .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.7) 100%);
}

.block-section.article-hero #hero__wrapper-fixed .block-section-wrapper {
  z-index: 1;
  width: 100%;
  padding: clamp(16px, 4vh, 32px) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: max(clamp(16px, 4vh, 32px), env(safe-area-inset-bottom));
}

.block-section.article-hero #hero__wrapper-fixed .hero__text {
  max-width: 62.5rem;
}

.block-section.article-hero #hero__wrapper-fixed .hero__title {
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  font-size: clamp(28px, 6vw + 2px, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.block-section.article-hero #hero__wrapper-fixed .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 2.8vw, 15px);
}

.block-section.article-hero #hero__wrapper-fixed .hero__meta .hero__divider {
  opacity: 0.6;
  display: none;
}

.block-section.article-hero #hero__wrapper-fixed .hero__meta .hero__date,
.block-section.article-hero #hero__wrapper-fixed .hero__meta .hero__author {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.block-section.article-hero #hero__wrapper-fixed .hero__meta .hero__date p,
.block-section.article-hero #hero__wrapper-fixed .hero__meta .hero__author p {
  margin: 0 6px 0 0;
  font-weight: 600;
}

@media (min-width: 768px) {
  .block-section.article-hero {
    --hero-height: 72svh;
  }
  @supports not (height: 1svh) {
    .block-section.article-hero {
      --hero-height: 72vh;
    }
  }
  .block-section.article-hero #hero__wrapper-fixed .hero__title {
    font-size: clamp(36px, 5vw, 56px);
  }
  .block-section.article-hero #hero__wrapper-fixed .hero__meta .hero__divider {
    display: inline;
  }
  .block-section.article-hero #hero__wrapper-fixed .hero__bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.65) 100%);
  }
}
@media (min-width: 1200px) {
  .block-section.article-hero {
    --hero-height: 85svh;
  }
  @supports not (height: 1svh) {
    .block-section.article-hero {
      --hero-height: 85vh;
    }
  }
  .block-section.article-hero #hero__wrapper-fixed .hero__title {
    font-size: 60px;
  }
}
.block-section.article-hero #hero__spacer {
  height: 0;
}
