/*****************************************************
BACKGROUNDS — Parallax & Scrolling Layouts
*****************************************************/

.bg-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 250vh;
  position: relative;
}

/* Scrolling text box over background image */
.bg-text-box {
  width: 40%;
  max-width: 650px;
  margin: 0 auto;
  margin-bottom: 85vh;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.92) 100%);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 4px solid #ba0c2f;
  position: relative;
  z-index: 1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #1a202c;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.bg-text-box h1,
.bg-text-box h2,
.bg-text-box h3,
.bg-text-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: #1a202c;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  text-shadow: none;
}

.bg-text-box h1 { font-size: 1.8rem; }
.bg-text-box h2 { font-size: 1.5rem; }
.bg-text-box h3 { font-size: 1.3rem; }
.bg-text-box h4 { font-size: 1.1rem; }

.bg-text-box p {
  margin-bottom: 1.5rem;
  color: #2d3748;
  font-weight: 400;
}

.bg-text-box strong,
.bg-text-box b {
  color: #ba0c2f;
  font-weight: 600;
}

.bg-text-box a {
  color: #ba0c2f;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(186, 12, 47, 0.3);
  transition: all 0.2s ease;
}

.bg-text-box a:hover {
  color: #8a0921;
  border-bottom-color: #8a0921;
}


/* Multi-background sticky container */
.bg-multi-container {
  position: relative;
  height: auto;
}

.bg-multi {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  z-index: 0;
}


/* Sticky background with overlay content */
.sticky_bg_container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: auto;
}

.sticky_bg {
  width: 100%;
  height: 100vh;
  grid-row: 1;
  grid-column: 1;
  position: sticky;
  top: 0;
  background-repeat: no-repeat;
  background-size: cover;
}

.sticky_bg_content {
  width: 50%;
  z-index: 0;
  grid-row: 1;
  grid-column: 1;
  margin: auto;
  margin-top: 100vh;
  margin-bottom: 100vh;
  background-color: rgba(10, 10, 10, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #fff;
}


/* Side-scroll layout */
.side-scroll-container {
  width: 100%;
  margin: auto 20px;
}

.ss-text-box { width: 33%; }

.ss-image-container {
  float: right;
  width: 66%;
  position: sticky;
  top: 0;
}

.ss-image { width: 100%; }


/*****************************************************
MOBILE — Scrollybox responsive overrides
*****************************************************/
@media (max-width: 768px) {

  /* Widen text boxes and reduce font — the scroll behavior works as-is. */
  .bg-text-box {
    width: 90% !important;
    font-size: 0.95rem;
    padding: 1.5rem 1.25rem;
    margin-bottom: 100vh;
  }

}
