.paragraph__list-item {
  font-size: 1.25rem;
}

.main-button {
  font-size: 1.25rem;
}
main {
  display: flex;
  position: relative;
}
.first-title {
  font-weight: lighter;
}
.second-title::after {
  content: "";
  display: block;
  height: 5px;
  width: 50%;
  background-color: var(--primary-color);
  border-radius: 5px;
  margin-top: 1.5rem;
}

main > section {
  z-index: 1;
  width: 50vw;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-background {
  position: absolute;
  transform: rotateY(180deg);
  z-index: 0;
  bottom: 0;
  right: 0;
  height: 90%;
}

main li {
  font-size: 1.3rem;
}

.background, .overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
}

.background {
  clip-path: polygon(40% 100%, 100% 60%, 100% 100%);
  background-color: var(--secondary-color);
}
.overlay {
  background: linear-gradient(90deg, rgba(255,239,211,1) 10%, rgba(255,255,255,0) 100%);
}

@media screen and (max-width: 800px) {
  main {
    flex-direction: column;
  }
  main > section {
    width: 80%;
    padding: 2rem;
    min-height: clamp(10em, 40vh, 40em);;
  }
  .overlay {
    background: rgba(255,239,211,.75);
  }
  .background {
    clip-path: polygon(0% 100%, 100% 85%, 100% 100%);
  }
}

/* ================= Carousel Auto-scroll ================= */

.carousel-gallery-auto {
  margin: auto;
  font-size: 16px;
  width: clamp(30em, 20vw, 50em);
  height: clamp(10em, 40vh, 40em);
  position: absolute;
  bottom: 0;
  right: 6.5rem;
}
.carousel-gallery-auto img {
  border-radius: 15px;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  animation: carousel-auto-scroll calc(var(--nb-item) * 5s) infinite;
  animation-delay: calc(var(--item) * 5s);
}

@keyframes carousel-auto-scroll {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  10% {
    transform: translateX(0);
    opacity: 1;
  }
  20% {
    transform: translateX(0);
    opacity: 1;
  }
  30% {
    transform: translateX(-100px);
    opacity: 0;
  }
}

@media screen and (max-width: 800px) {
  .carousel-gallery-auto {
    right: 0;
    transform: scale(.8);
  }

}