.page {
  background: #370402;
}

.back-to-parent,
.back-to-top {
  background-color: rgba(231, 115, 27, 0.9) !important;
}

.slide-text-container a {
  color: #666666;
}

.slide-text-container a:hover {
  color: black;
}

.our-story-page .slide.long-slide-text-bg .slide-content {
  padding: 0;
}

@media screen and (max-width: 900px) {
  .our-story-page .slide.long-slide-text-bg .slide-content {
    padding-top: 50px;
  }
}

.our-story-page .slide.long-slide-text-bg .slide-text {
  max-width: 1200px;
}

@media screen and (max-width: 900px) {
  .our-story-page .slide:not(#intro):not(#chapter-select) .slide-text.top-left,
  .our-story-page
    .slide:not(#intro):not(#chapter-select)
    .slide-text.top-right {
    align-self: center !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: auto !important;
  }

  .our-story-page
    .slide:not(#intro):not(#chapter-select)
    .slide-text.center-left,
  .our-story-page .slide:not(#intro):not(#chapter-select) .slide-text.center,
  .our-story-page
    .slide:not(#intro):not(#chapter-select)
    .slide-text.center-right,
  .our-story-page
    .slide:not(#intro):not(#chapter-select)
    .slide-text.bottom-left,
  .our-story-page
    .slide:not(#intro):not(#chapter-select)
    .slide-text.bottom-right {
    align-self: center !important;
    text-align: center !important;
    margin-top: auto !important;
    margin-bottom: 50px !important;
  }
}

#intro .slide-text-container div {
  color: white;
}

#intro .slide-text-container .intro-line-1 {
  margin-top: 30px;
  font-size: 23px;
  font-family: sans-serif;
  line-height: 1em;
}

#intro .slide-text-container .intro-line-2 {
  font-size: 93px;
  font-family: sans-serif;
  line-height: 1em;
}

.intro-skip-link {
  color: white !important;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  margin: 15px 0;
}

.intro-skip-link:hover {
  color: #ffb738 !important;
}

#intro .slide-text-container .intro-line-3 {
  font-size: 20px;
  line-height: 1em;
}

@media screen and (max-width: 900px) {
  #intro .slide-text-container .intro-icon {
    width: max(13.846vw, 46px);
  }

  #intro .slide-text-container .intro-line-1 {
    margin-top: 1vw;
    font-size: max(2.746vw, 10px);
  }

  #intro .slide-text-container .intro-line-2 {
    font-size: max(10.846vw, 35px);
  }

  #intro .slide-text-container .intro-skip-link {
    margin-top: max(1vw, 5px);
    margin-bottom: max(1vw, 5px);
    font-size: max(2.746vw, 10px);
  }

  #intro .slide-text-container .intro-line-3 {
    font-size: max(2.746vw, 10px);
  }
}

#chapter-select .slide-text-container img {
  width: 70%;
}

#chapter-select .contentBox {
  position: relative;
  max-width: unset;
  flex: 0 0 14%;
}

#chapter-select .contentBox__bg {
  display: none;
}

#chapter-select .contentBox__title--link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#chapter-select .contentBox__content p {
  position: relative;
  margin: 0;
}

#chapter-select .contentBox__content p img {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

#chapter-select .contentBox__content p img.fr-dib {
  display: block;
  margin: 0 auto;
}

#chapter-select .contentBox__content p img:first-child {
  width: 100%;
}

#chapter-select .contentBox__content p img:last-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

#chapter-select .contentBox:hover img:last-child {
  opacity: 1;
  cursor: pointer;
}

#chapter-select .slide-content {
  margin: 0;
  padding: 0;
}

#chapter-select .slide-text {
  max-width: 100%;
  padding: 0;
}

#chapter-select .slide-text-container p {
  margin-left: auto !important;
  margin-right: auto !important;
}

#chapter-select .slide-chapters {
  max-width: unset;
}

@media screen and (max-width: 900px) {
  #chapter-select .slide-chapters {
    justify-content: center; /* centers the 2 cards on the bottom row */
  }
  #chapter-select .slide-text-container img {
    width: 80%;
  }
  #chapter-select .contentBox {
    flex: 0 0 18%; /* 3 cards + 2 gaps of 2% = 100% → 3 per row, 2 wrap below */
  }
}

@media screen and (max-width: 480px) {
  #chapter-select .slide-text-container img {
    width: 95%;
  }

  #chapter-select .contentBox {
    flex: 0 0 25.34%;
  }
}

#chapter-select .slide-text::before {
  content: "";
  position: absolute;
  inset: unset;
  top: -40vh;
  bottom: -40vh;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%); /* recenters the full-width band */
  background-image: var(--background);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.page__top-media .bg-vid__button.pinned {
  position: fixed;
  top: 0px;
  right: max(15px, calc(50% - var(--page-max-width) / 2 + 15px));
  z-index: 5;
}
