/*
	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.homepage-hero {
  --hero-text: var(--color__white);
  --hero-background-clr: var(--color__silvermist-bg);
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

@media screen and (max-width: 1000px) {
  section.homepage-hero {
    margin-top: 6.25rem;
    height: 70vh;
  }
}
section.homepage-hero .homepage-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.625rem;
}

section.homepage-hero .homepage-hero__background .homepage-hero__video,
section.homepage-hero .homepage-hero__background img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  padding: 1rem;
  border-radius: 1.625rem;
}

section.homepage-hero .homepage-hero__background .hero-overlay {
  position: absolute;
  inset: 1rem;
  border-radius: 0.625rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
  pointer-events: none;
}

section.homepage-hero .block-section-wrapper {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

section.homepage-hero .block-section-wrapper .homepage-hero__content {
  color: var(--hero-text);
  width: 100%;
  height: 62%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  padding-bottom: 3rem;
  opacity: 0;
  z-index: 2;
}

@media screen and (max-width: 1000px) {
  section.homepage-hero .block-section-wrapper .homepage-hero__content {
    padding: 0 1.5rem 5.25rem;
    justify-content: flex-end;
    gap: 4rem;
    height: 42%;
  }
}
section.homepage-hero .block-section-wrapper .homepage-hero__content .homepage-hero__title {
  text-align: left;
  max-width: 50%;
  line-height: 1.2;
  margin-bottom: 1.875rem;
}

@media screen and (max-width: 600px) {
  section.homepage-hero .block-section-wrapper .homepage-hero__content .homepage-hero__title {
    max-width: 100%;
  }
}
section.homepage-hero .block-section-wrapper .homepage-hero__content .homepage-hero__sub_header {
  max-width: 36%;
  text-wrap: balance;
  font-size: clamp(2rem, 4vw, 3rem);
}

@media screen and (max-width: 80em) {
  section.homepage-hero .block-section-wrapper .homepage-hero__content .homepage-hero__sub_header {
    max-width: 50%;
  }
}
@media screen and (max-width: 600px) {
  section.homepage-hero .block-section-wrapper .homepage-hero__content .homepage-hero__sub_header {
    max-width: 100%;
  }
}
section.homepage-hero .block-section-wrapper .homepage-hero__content .homepage-hero__description {
  text-align: left;
  margin-top: auto;
  width: 100%;
  max-width: 21.5rem;
}

@media screen and (max-width: 600px) {
  section.homepage-hero .block-section-wrapper .homepage-hero__content .homepage-hero__description {
    max-width: 70%;
  }
}
.homepage-hero__background--masked {
  z-index: 11;
  -webkit-mask: url("/wp-content/themes/polarisweb/template-parts/svg/star.svg") center/contain no-repeat;
  mask: url("/wp-content/themes/polarisweb/template-parts/svg/star.svg") center/contain no-repeat;
  -webkit-mask-size: 30%;
  mask-size: 30%;
  opacity: 0;
}

.homepage-hero--with-preloader {
  background: var(--color__silvermist-bg);
  z-index: 103;
}

.homepage-hero--with-preloader .preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 104;
  pointer-events: none;
  background: var(--color__silvermist-bg);
}

.preloader-white-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color__silvermist-bg);
  z-index: 104;
  pointer-events: none;
}

.preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 200px;
  z-index: 101;
  opacity: 0;
}

.preloader-logo svg {
  width: 100%;
  height: auto;
  display: block;
}
