/*
	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.quote {
  --text-color: var(--color__dark-grey, #000);
  --border-color: var(--color__light-grey, #cccacb);
  color: var(--text-color);
  font-weight: 300;
}

section.quote .block-section-wrapper {
  display: flex;
  gap: 10rem;
  flex-flow: row-reverse;
  align-items: flex-start;
}

@media screen and (max-width: 1210px) {
  section.quote .block-section-wrapper {
    gap: 6.25rem;
  }
}
@media screen and (max-width: 1000px) {
  section.quote .block-section-wrapper {
    flex-direction: column;
    flex-flow: column-reverse;
    gap: 3.125rem;
  }
}
section.quote .block-section-wrapper .image-wrapper {
  width: 33%;
}

@media screen and (max-width: 1210px) {
  section.quote .block-section-wrapper .image-wrapper {
    width: 40%;
  }
}
@media screen and (max-width: 1000px) {
  section.quote .block-section-wrapper .image-wrapper {
    width: 100%;
  }
}
section.quote .block-section-wrapper .image-wrapper .author-photo {
  width: 100%;
  margin-bottom: 1rem;
}

section.quote .block-section-wrapper .image-wrapper .author-photo img {
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: right;
     object-position: right;
  -webkit-clip-path: polygon(2.5rem 0, 100% 0, 100% calc(100% - 3.845rem), calc(100% - 2.5rem) 100%, 0 100%, 0 3.845rem);
          clip-path: polygon(2.5rem 0, 100% 0, 100% calc(100% - 3.845rem), calc(100% - 2.5rem) 100%, 0 100%, 0 3.845rem);
  width: 100%;
  height: 30rem;
}

@media screen and (max-width: 1000px) {
  section.quote .block-section-wrapper .image-wrapper .author-photo img {
    aspect-ratio: 16/9;
    height: auto;
    min-height: 15rem;
    -o-object-position: top;
       object-position: top;
  }
}
section.quote .block-section-wrapper .image-wrapper .author-name {
  border-bottom: 1px solid var(--border-color);
  font-size: 28px;
  padding-bottom: 1rem;
}

section.quote .block-section-wrapper .image-wrapper .author-title {
  margin-top: 1rem;
}

section.quote .block-section-wrapper .text-wrapper {
  width: 66%;
  text-wrap: pretty;
  padding-top: 1.25rem;
}

@media screen and (max-width: 1210px) {
  section.quote .block-section-wrapper .text-wrapper {
    width: 60%;
  }
}
@media screen and (max-width: 1000px) {
  section.quote .block-section-wrapper .text-wrapper {
    width: 100%;
  }
}
