.text-card, .image-card {
  --default-card-shadow: 0 0 70px 0 rgba(0, 0, 0, 0.3);
}

.image-text-sections {
  margin-top: 47px;
}

.image-text-section {
  display: grid;
}
.image-text-section:not(:last-of-type) {
  margin-bottom: 90px;
}

.image-text-section > :is(.text-card, .image-card-container) {
  grid-column-start: 1;
  grid-row-start: 1;
}

.text-card {
  /* position: relative;
  top: 50px; */
  width: 60%;
  height: min-content;
  margin-top: 50px;
  padding: 30px;
  /* color: #fff; */
  background-color: #fff;
  z-index: 2;
  box-shadow: var(--default-card-shadow);
}
.image-text-section:nth-of-type(odd) > .text-card {
  margin-left: auto;
}
.image-text-section:nth-of-type(even) > .text-card {
  margin-right: auto;
}

.text-card-title {
  font-size: 70px;
  font-weight: 500;
}

.text-card-content > p:last-child {
  margin-bottom: 0;
}

.text-card-content > .image-mobile-only {
  display: none;
  width: 100%;
  margin: 5px 0 18px;
}

.image-card {
  /* position: absolute;
  top: 0; */
  width: 60%;
  box-shadow: var(--default-card-shadow);
  transition: 500ms ease all;

}

.image-clone{
  width: 60%;
  opacity: 0;
  z-index: 3;
  transition: 700ms ease all;
}
.image-clone:hover{
  opacity: 1;
  transition-delay: 2s;
}

.image-card-container{
  display: grid;
}
.image-card-container >:is(.image-clone, .image-card){
  grid-column-start: 1;
  grid-row-start: 1;
}

.image-text-section:nth-of-type(odd) > .image-card-container > .image-card {
  margin-right: auto;

}
.image-text-section:nth-of-type(even) > .image-card-container >.image-card  {
  margin-left: auto;

}
.image-text-section:nth-of-type(odd) > .image-card-container > .image-clone {
  margin-right: auto;

}
.image-text-section:nth-of-type(even) > .image-card-container >.image-clone  {
  margin-left: auto;

}


@media screen and (max-width: 1280px) {
  .image-card, .text-card ,.image-clone {
    width: 65%;
  }
}

@media screen and (max-width: 800px) {
  .image-text-sections {
    margin-top: 21px;
  }
  main > .image-text-sections:first-child {
    margin-top: 0;
  }
  main > .image-text-sections:last-child {
    margin-bottom: -120px;
  }
  .image-text-section {
    display: flex;
    flex-direction: column;
    width: 100vw;
  }
  .image-text-section:not(#_) {
    margin-left: -25.5px;
    margin-bottom: 0;
  }

  /* .text-card:not(#_), .image-card:not(#_) {
    width: 100%;
    box-shadow: none;
  } */

  .text-card:not(#_), .image-card:not(#_) {
    width: 100%;
    box-shadow: none;
  }
  .image-text-section-blend-in-on-mobile > :is(.text-card, .image-card) {
    padding-left: 25.5px;
    padding-right: 25.5px;
  }

  .text-card {
    margin-top: 0;
    background-color: transparent;
  }
  main > .image-text-sections:first-child > .image-text-section:first-child > .text-card {
    margin-top: -3px;
  }
  .image-text-section-blend-in-on-mobile:first-child > .text-card {
    padding-top: 7px;
  }

  .image-text-section-blend-in-on-mobile .text-card-title {
    font-size: 45px;
  }

  .text-card-content > .image-mobile-only {
    display: inline;
  }

  .image-card {
    margin-top: -7px;
    padding: 0 30px 30px;
    z-index: 3;
  }
  .image-clone{
    display: none
  }

  .image-card.image-card-hide-on-mobile {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  .image-text-section-blend-in-on-mobile .text-card-title {
    font-size: 35px;
  }
}
