/*
	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
*/
.text-image .block-section-wrapper {
  padding-top: 4rem;
  /* Image left alignment */
  /* Image right alignment */
}

.text-image .block-section-wrapper.border-top {
  border-top: 1px solid var(--color__dark-purple);
}

.text-image .block-section-wrapper.border-top.dark-background {
  border-top: 1px solid var(--color__light-grey);
}

.text-image .block-section-wrapper.dark-background .text-content .header-text,
.text-image .block-section-wrapper.dark-background .text-content .text {
  color: var(--color__white);
}

.text-image .block-section-wrapper.dark-background .chapter-index-container {
  color: var(--color__white) !important;
}

.text-image .block-section-wrapper .content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: -webkit-min-content;
  grid-auto-rows: min-content;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.text-image .block-section-wrapper .content-grid .chapter-index-container {
  display: flex;
  gap: 0.5rem;
  color: var(--color__dark-purple);
}

.text-image .block-section-wrapper .content-grid .chapter-index-container .chapter-index {
  position: relative;
  padding-left: 1.5em;
}

.text-image .block-section-wrapper .content-grid .chapter-index-container .chapter-index::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color__purple);
  left: 5px;
  top: 50%;
  transform: translate(-50%, -50%);
}

.text-image .block-section-wrapper .image-left .chapter-index-container,
.text-image .block-section-wrapper .image-left .image-container {
  grid-column: 1;
}

.text-image .block-section-wrapper .image-left .text-content {
  grid-column: 2;
  grid-row: 1/span 2;
}

.text-image .block-section-wrapper .image-right .chapter-index-container,
.text-image .block-section-wrapper .image-right .text-content {
  grid-column: 1;
}

.text-image .block-section-wrapper .image-right .image-container {
  grid-column: 2;
  grid-row: 1/span 2;
  justify-content: end;
}

.text-image .block-section-wrapper .image-container {
  width: 100%;
  min-width: 300px;
  height: 400px;
  display: flex;
}

.text-image .block-section-wrapper .image-container img {
  width: 50%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 77.5em) {
  .text-image .block-section-wrapper .image-container img {
    width: 90%;
  }
}
.text-image .block-section-wrapper .text-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  color: var(--color__dark-purple);
}

.text-image .block-section-wrapper .text-content p {
  margin: 0;
}

.text-image .block-section-wrapper .text-content a {
  color: var(--color__dark-purple);
  text-decoration: underline;
  cursor: pointer;
}
