/* Home page refinements: "Our Impact" heading, "Who We Are" (mobile presence),
   video sizing, and "Our Story" spacing/image fit (index.html).
   Desktop (>=1025px) is intentionally untouched, except the heading centering
   which the brief requires at every width. */

/* ---- Heading alignment: applies at all widths ---- */
.Our_Impact h1 {
  text-align: center;
}

/* ---- Mobile + tablet only ---- */
@media (max-width: 1024px) {
  /* "Who We Are": use the mobile viewport properly without clipping content */
  .hero_container_left {
    margin: 0;
    padding: var(--space-6) var(--space-4);
    min-height: 90svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .hero_left2 {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .hero_left2 h1 {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    font-size: 1.75rem;
    line-height: var(--line-height-heading);
    border-radius: var(--radius-md);
  }

  .hero_left2 p {
    margin: 0;
    padding: var(--space-4);
    font-size: var(--font-size-body);
    line-height: var(--line-height-base);
    border-radius: var(--radius-md);
  }

  /* Video: the old rule used height: 40vw, which squashed the frame on
     mobile. Fluid width + intrinsic aspect ratio instead, so it renders as
     large as the column allows with the native controls fully visible. */
  .hero_left2 video {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    margin: 0;
    border-radius: var(--radius-md);
  }

  /* "Our Story" spacing and image fit */
  .our_story {
    margin: var(--space-6) var(--space-4);
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
  }

  .our_story h2 {
    padding: 0;
    margin: 0 0 var(--space-4);
    font-size: 1.6rem;
    text-align: center;
  }

  .our_story_text {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .our_story_p {
    width: auto;
    max-width: 100%;
    padding: 0;
    margin: 0;
    line-height: var(--line-height-base);
  }

  /* Source is 1280x960 (4:3); frame keeps that ratio without distortion */
  .our_story_text img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 640px) {
  .hero_container_left {
    min-height: 85svh;
    padding: var(--space-5) var(--space-4);
  }
}