/* ==================================================
   ABOUT PAGE - Mobile First
================================================== */

/* ==================================================
   1. SECTION LAYOUT
================================================== */

.about-section {
  text-align: center;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ==================================================
   2. STORY ROWS
================================================== */

.about-story-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

.about-story-text {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

/* ==================================================
   3. IMAGES
================================================== */

.about-story-image {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 10px;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.about-story-image.animate {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .about-story-row {
    display: block;
  }

  .about-story-row:not(:first-child) .about-story-image {
    display: none;
  }

  .about-story-text {
    margin-top: var(--space-md);
  }

  .about-story {
    gap: var(--space-md);
  }
}

/* ==================================================
   4. DESKTOP LAYOUT
================================================== */

@media (min-width: 768px) {
  .about-story {
    gap: var(--space-2xl);
  }

  .about-story-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .about-story-row-reverse .about-story-image {
    order: 2;
  }

  .about-story-row-reverse .about-story-text {
    order: 1;
  }

  .about-story-image {
    max-width: 400px;
  }

  .about-story-text {
    text-align: center;
  }
}
