/* Home page "Our Impact" section (index.html): image sizing + column alignment.
   Scoped to .hero_container2 so other sections are untouched. */

@media (max-width: 1024px) {
  .hero_container2 {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-4);
    margin-left: var(--space-4);
    margin-right: var(--space-4);
  }

  /* min-width:0 lets each column shrink instead of forcing the page wider */
  .hero_left_,
  .hero_right {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero_left_ h2,
  .hero_right h2 {
    margin: 0 0 var(--space-3);
  }

  .hero_left_ h3,
  .hero_right h3 {
    margin: 0 0 var(--space-4);
    line-height: var(--line-height-base);
  }

  .hero_left_ img,
  .hero_right img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
}

@media (min-width: 1025px) {
  .hero_container2 {
    gap: var(--space-6);
  }

  .hero_left_,
  .hero_right {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Both images share one desktop frame height (the original 400px design
     height) so a landscape and a portrait photo display at the same visual
     height. object-fit keeps them undistorted; the portrait image is centred
     and cropped rather than stretched. */
  .hero_left_ img,
  .hero_right img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
  }

  .hero_left_ img { max-width: 520px; }
  .hero_right img { max-width: 600px; }
}