/*****************************************************
BACKGROUNDs
*****************************************************/

.bg-image {
  /* Positioning */
  position: relative;
  
  /* Visual */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* This makes the background fixed while scrolling */
}


/* Styling the scrolling text box */
.bg-text-box {
  /* Positioning */
  position: relative;
  z-index: 1;
  
  /* Box Model */
  max-width: 30rem;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-md) var(--spacing-lg);
  
  /* Typography */
  font-family: var(--font-serif);
  line-height: 1.6;
  color: var(--text-primary);
  
  /* Visual */
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
  

.bg-multi-container {
  /* Positioning */
  position: relative;
  
  /* Box Model */
  height: auto;
}


.bg-multi {
  /* Positioning */
  position: sticky; 
  top: 0;
  left: 0;
  z-index: 0;
  
  /* Box Model */
  width: 100%;
  height: 100vh;
  
  /* Visual */
  background-size: cover;
  background-position: center;
  
  /* Interactivity */
  transition: background-image var(--transition-slow);
}


/*****************************************************
STICKY BACKGROUND
*****************************************************/
/* keep next 3 sections together */
.sticky-bg-container {
  /* Display */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  
  /* Box Model */
  height: auto;
  
  /* Visual */
  background: blue;
}

.sticky-bg {
  /* Positioning */
  position: sticky;
  top: 0;
  grid-row: 1;
  grid-column: 1;
  
  /* Box Model */
  width: 100%;
  height: 100vh;
  
  /* Visual */
  background-repeat: no-repeat;
  background-size: cover;
}
  
.sticky-bg-content {
  /* Positioning */
  top: var(--spacing-lg);
  z-index: 10;
  
  /* Box Model */
  max-width: 50rem;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-md) var(--spacing-lg);
  
  /* Typography */
  font-family: var(--font-serif);
  line-height: 1.6;
  color: var(--text-primary);
  
  /* Visual */
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}



/*****************************************************
SIDE SCROLL
*****************************************************/

.side-scroll-container {
  /* Box Model */
  width: 100%;
  margin: auto 2rem;
}

.ss-text-box {
  /* Box Model */
  width: 33%;
}

.ss-image-container {
  /* Positioning */
  position: sticky;
  top: 0;
  float: right;
  
  /* Box Model */
  max-width: 66%;
}

.ss-image {
  /* Box Model */
  width: 100%;
}

 