.memory-row {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  margin: 40px 40px 10px 40px;
}

/* Left Image Column */
.memory-image {
  flex: 0 0 auto;
  position: relative;
}

.top-left-floating {
  width: 20vw;
  height: auto;
  margin-top: -50px; /* Makes image half outside the section */
}

/* Right Text Column */
.memory-text {
  font-family: "Myriad Pro", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--purple-color);
  flex: 1;
  text-align: center;
  padding-right: 20vw;
}

/* Responsive */
@media (max-width: 768px) {
  .memory-row {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }

  .top-left-floating {
    width: 50vw;
  }

  .memory-text {
    text-align: center;
    padding: 0;
  }
}

.center-text {
  width: 100%;
  text-align: center;
  margin: 10px 0;
}

.main-line {
  font-size: 24px;
  line-height: 1.5;
  font-weight: bold;
  color: var(--purple-color);
  margin: 0;
}

.hashtag {
  padding-top: 10px;
  line-height: 0.5;
  font-size: 16px;
  font-weight: 500;
  color: orangered;
  margin: 0;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  overflow: hidden;
}

.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll-left 25s linear infinite;
}

.carousel-right .carousel-track {
  animation: scroll-right 25s linear infinite;
}

/* Image styling */
.carousel img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px; /* rounded square */
  flex-shrink: 0;
}

.carousel img:hover {
  transform: scale(1.1);
}

/* Left → Right animation */
@keyframes scroll-left {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Right → Left animation */
@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}
