body {
  overflow-x: hidden;
}

.mothers-title-section {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mothers-title-container {
  max-width: 56rem;
  text-align: center;
}

.mothers-title-container > p {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  color: var(--neutral-dark);
  margin: 0 0 2rem 0;
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}

.mothers-title-container > p span {
  font-weight: var(--fw-semibold);
  color: var(--primary-1);
  display: inline-block;
  position: relative;
}

.mothers-title-container > p span::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 0.188rem;
  background: linear-gradient(90deg, transparent, #305cde, transparent);
}

.mother-more-details {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.mother-more-details p {
  font-family: var(--font-body);
  font-size: var(--fs-h6);
  line-height: var(--lh-h6);
  color: #495057;
  font-style: italic;
  margin: 0;
  position: relative;
  padding: 0 1rem;
}

.mother-more-details p::before {
  content: "\201C";
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  font-size: 3rem;
  color: var(--primary-1);
  opacity: 0.3;
  line-height: 1;
}

.mother-more-details p span {
  font-family: var(--font-body);
  display: block;
  margin-top: 1rem;
  font-size: var(--fs-base);
  font-style: normal;
  font-weight: var(--fw-medium);
  color: #6c757d;
  text-align: right;
}

.mothers-banner {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mothers-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: brightness(90%);
}

#cloudVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slider {
  position: absolute;
  width: 200px;
  height: 250px;
  top: 10%;
  left: calc(50% - 100px);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  animation: autoRun 20s linear infinite;
  z-index: 2;
}

@keyframes autoRun {
  from {
    transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
  }
  to {
    transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
  }
}

.slider-item {
  position: absolute;
  inset: 0;
  transform: rotateY(
      calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
    )
    translateZ(550px);
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.pfp {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 100%;
}

@media (max-width: 1024px) {
  .mothers-title-section {
    padding: 3.5rem 1.5rem;
  }

  .slider {
    width: 160px;
    height: 200px;
    left: calc(50% - 80px);
  }

  .slider-item {
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(450px);
  }

  .pfp {
    width: 600px;
    height: 600px;
    background-color: transparent;
  }
}

@media (max-width: 900px) {
  .mothers-title-section {
    padding: 3.25rem 1.4rem;
  }

  .slider {
    width: 130px;
    height: 175px;
    left: calc(50% - 65px);
  }

  .slider-item {
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(365px);
  }

  .pfp {
    width: 475px;
    height: 500px;
    background-color: transparent;
  }

  .mothers-banner {
    height: 60vh;
  }
}

@media (max-width: 768px) {
  .mothers-title-section {
    padding: 3rem 1.25rem;
  }

  .mothers-banner {
    height: 70vh;
  }

  .mother-more-details {
    padding: 1.5rem;
  }

  .slider {
    margin-bottom: 50px;
    width: 100px;
    height: 150px;
    left: calc(50% - 50px);
  }

  .slider-item {
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(280px);
  }

  .pfp {
    width: 350px;
    height: 400px;
    object-fit: contain;
    background-color: transparent;
  }
}

@media (max-width: 480px) {
  .mothers-title-section {
    padding: 2.5rem 1rem;
  }

  .mothers-title-container > p {
    margin-bottom: 1.5rem;
  }

  .mother-more-details {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }

  .mother-more-details p {
    padding: 0 0.5rem;
  }

  .mother-more-details p::before {
    font-size: 2.5rem;
  }

  .slider-item {
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(180px);
  }
}

@media (max-width: 400px) {
  .mother-more-details {
    padding: 1rem;
  }
}

@media (max-width: 375px) {
  .mothers-title-section {
    padding: 2rem 0.875rem;
  }

  .mother-more-details {
    padding: 1rem;
  }
}
