/*
	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
*/
.chapter-1-video {
  height: 100%;
  min-height: 100vh;
  width: 100%;
  color: var(--color__white);
  position: relative;
}

.chapter-1-video .scroll-content-container {
  display: grid;
  grid-template-rows: repeat;
  width: 100%;
  position: relative;
  height: auto;
}

.chapter-1-video .scroll-content-container .dark-overlay {
  width: 100%;
  position: absolute;
  height: 100%;
  background-color: #191919;
  will-change: opacity;
  z-index: 45;
}

.chapter-1-video .scroll-content-container .video-container {
  grid-row: 1/-1;
  grid-column: 1;
  height: 100vh;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}

.chapter-1-video .scroll-content-container .video-container .chapter-1-video {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.chapter-1-video .scroll-content-container .intro-container {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  height: 80vh;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  z-index: 50;
  position: relative;
}

.chapter-1-video .scroll-content-container .intro-container .chapter-1-scrolldown {
  color: var(--color__dark-purple);
  z-index: 100;
  text-align: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.chapter-1-video .scroll-content-container .intro-container .overlay {
  grid-row: 1;
  grid-column: 1;
  height: 100%;
  width: 100%;
  background: linear-gradient(1deg, #bba2e3 0%, #e0ccff 100%);
  z-index: 23;
  position: fixed;
  top: 0;
  left: 0;
}

.chapter-1-video .scroll-content-container .intro-container .intro-text {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  height: 80vh;
  z-index: 51;
  color: var(--color__dark-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chapter-1-video .scroll-content-container .intro-container .intro-text p {
  text-align: center;
  max-width: 800px;
  margin: 0;
}

.chapter-1-video .scroll-content-container .intro-container .intro-text .line-child {
  display: block;
  overflow: hidden;
}

.chapter-1-video .scroll-content-container .chapter-section {
  height: 150vh;
  width: 100%;
  grid-column: 1;
  z-index: 3;
  position: relative;
}

.chapter-1-video .scroll-content-container .chapter-section .chapter-content-container {
  height: 52vh;
  width: 100%;
  position: relative;
  z-index: 55 !important;
}

.chapter-1-video .scroll-content-container .chapter-section .chapter-content-container::before {
  content: "";
  position: absolute;
  filter: blur(0px);
  top: -30vh;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(28, 28, 28, 0.8) 60%);
  pointer-events: none;
  z-index: 1;
}

.chapter-1-video .scroll-content-container .chapter-section .chapter-content {
  padding: 2rem 0;
  border-top: 1px solid var(--color__white);
  margin: 0 4rem;
  height: 32vh;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

@media (max-width: 87.5em) {
  .chapter-1-video .scroll-content-container .chapter-section .chapter-content {
    gap: 2rem;
  }
}
.chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-1-index-container {
  display: flex;
  gap: 0.5rem;
  width: 30%;
}

@media (max-width: 87.5em) {
  .chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-1-index-container .chapter-name {
    font-size: 1rem;
  }
}
.chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-1-index-container .chapter-index {
  position: relative;
  padding-left: 1.5em;
}

@media (max-width: 87.5em) {
  .chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-1-index-container .chapter-index {
    font-size: 1rem;
  }
}
.chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-1-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%);
}

.chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-text-large {
  width: 50%;
  margin: 0 10rem 0 0;
}

@media (max-width: 87.5em) {
  .chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-text-large {
    font-size: 1.5rem;
    margin: 0 8rem 0 0;
  }
}
.chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-text-small {
  width: 70%;
  display: flex;
  margin: 0 6rem 0 0;
  gap: 5rem;
}

@media (max-width: 87.5em) {
  .chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-text-small {
    width: 72%;
    gap: 4rem;
    margin: 0 3rem 0 0;
  }
}
@media (max-width: 77.5em) {
  .chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-text-small {
    width: 78%;
    gap: 3rem;
  }
}
.chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-text-small p {
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 77.5em) {
  .chapter-1-video .scroll-content-container .chapter-section .chapter-content .chapter-text-small p {
    font-size: 1rem;
  }
}
