.alternating-lists-w-images {
  max-width: 100vw;
  overflow: hidden;
}

.alwi__title-wrapper.content-wrapper {
  padding: 0;
}

.alwi__section.content-wrapper {
  display: flex;
  gap: 6rem;
  align-items: center;
  margin-bottom: 6rem;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 0;
  width: 100%;
}

.alwi__list-wrapper {
  display: flex;
  flex-flow: column;
  gap; 6rem;
}

.alwi__section.content-wrapper:nth-child(even),
.alwi--flipped .alwi__section.content-wrapper:nth-child(odd) {
  flex-flow: row-reverse;
}

.alwi--flipped .alwi__section.content-wrapper:nth-child(even) {
  flex-flow: row;
}

.alwi__section__copy,
.alwi__section__image-wrapper {
  flex-basis: 0;
  flex-grow: 1;
  width: 50%;
}

.alwi__section__list-wrapper {
  list-style: none;
  padding: 0;
  margin-bottom: 4rem;
  display: flex;
  flex-flow: column;
  gap: 4rem;
}

.alwi__section__list-item {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.alwi__section__list-item__icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.alwi__section__image-wrapper::before {
  --current-overflow: calc((100vw - var(--container-width)) / 2);
  --standardized-overflow: max(2rem, var(--current-overflow));
  --section-offset: calc(var(--standardized-overflow) * -1);
  content: '';
  width: calc(50vw - 8rem);
  height: 100%;
  position: absolute;
  display: block;
  background: var(--primary-color-hover);
  border-radius: 32px 0 0 32px;
  right: var(--section-offset);
  top: 0;
  z-index: -1;
}

.alwi__section.content-wrapper:nth-child(even) .alwi__section__image-wrapper::before,
.alwi--flipped .alwi__section.content-wrapper:nth-child(odd) .alwi__section__image-wrapper::before {
  right: 4rem;
  left: var(--section-offset);
  border-radius: 0 32px 32px 0;
}

.alwi--flipped .alwi__section.content-wrapper:nth-child(even) .alwi__section__image-wrapper::before {
  right: var(--section-offset);
  left: 4rem;
  border-radius: 32px 0 0 32px;
}

.alwi__section__image-wrapper {
  padding-block: 4rem; 
}

.alwi__section__image {
  width: 100%;
  height: auto;
}

.alwi__section__yt-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

@media (max-width: 767px) {
  .alwi__section.content-wrapper {
    flex-flow: column !important;
  }
  
  .alwi__section__copy,
  .alwi__section__image-wrapper {
    width: 100%;
  }
  
  .alwi__section__image-wrapper {
    position: relative;
    padding: 2rem 0;
  }
  
  .alwi__section__image-wrapper::before {
    width:  85vw;
    right: -2rem;
  }
  
  .alwi__section.content-wrapper:nth-child(even) .alwi__section__image-wrapper::before,
  .alwi--flipped .alwi__section.content-wrapper:nth-child(odd) .alwi__section__image-wrapper::before {
    right: unset;
    left: -2rem;
  }
  
  .alwi--flipped .alwi__section.content-wrapper:nth-child(even) .alwi__section__image-wrapper::before { 
    right: -2rem;
    left: unset;
  }
}

/* === Fade-In Logic === */

/* For Reference:  

.fade-in--left {
  transform: translateX(-100px); 
}

.fade-in--right {
  transform: translateX(100px); 
}

*/

.alwi__section.content-wrapper:nth-child(odd) .alwi__section__copy.fade-in,
.alwi__section.content-wrapper:nth-child(even) .alwi__section__image-wrapper.fade-in,
.alwi--flipped .alwi__section.content-wrapper:nth-child(odd) .alwi__section__image-wrapper.fade-in,
.alwi--flipped .alwi__section.content-wrapper:nth-child(even) .alwi__section__copy.fade-in,
.alwi__section.content-wrapper:nth-child(odd) .alwi__section__copy.fade-in .button,
.alwi--flipped .alwi__section.content-wrapper:nth-child(even) .alwi__section__copy.fade-in .button {
  opacity: 0;
  transform: translateX(-100px);
}

.alwi__section.content-wrapper:nth-child(even) .alwi__section__copy.fade-in,
.alwi__section.content-wrapper:nth-child(odd) .alwi__section__image-wrapper.fade-in,
.alwi--flipped .alwi__section.content-wrapper:nth-child(even) .alwi__section__image-wrapper.fade-in,
.alwi--flipped .alwi__section.content-wrapper:nth-child(odd) .alwi__section__copy.fade-in,
.alwi__section.content-wrapper:nth-child(even) .alwi__section__copy.fade-in .button,
.alwi--flipped .alwi__section.content-wrapper:nth-child(odd) .alwi__section__copy.fade-in .button {
  opacity: 0;
  transform: translateX(100px);
}


@keyframes fadeInLeft {
  0% { transform: translateX(-100px); opacity: 0; }
  50% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0px); opacity: 1; }
}

@keyframes fadeInRight {
  0% { transform: translateX(100px); opacity: 0; }
  50% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0px); opacity: 1; }
}

.alwi__section.content-wrapper:nth-child(odd) .alwi__section__copy.fade-in.fade-in--fading-in .button,
.alwi--flipped .alwi__section.content-wrapper:nth-child(even) .alwi__section__copy.fade-in.fade-in--fading-in .button {
  animation-name: fadeInLeft;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

.alwi__section.content-wrapper:nth-child(even) .alwi__section__copy.fade-in.fade-in--fading-in .button,
.alwi--flipped .alwi__section.content-wrapper:nth-child(odd) .alwi__section__copy.fade-in.fade-in--fading-in .button {
  animation-name: fadeInRight;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}