/*
  Home page overrides only.
  Goals:
  - Keep hero in 2 columns on desktop
  - Keep hero stacked on mobile
  - Ensure hero image covers its card (no bottom gap)
  - Add MORE space between text and image on desktop
*/

/* Desktop / tablet */
.hero-grid--home{
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;

  /* THIS is the spacing between text and image */
  gap: 48px !important;

  align-items: center;
}

/* Prevent any child from forcing overflow that can collapse columns */
.hero-grid--home > *{ min-width: 0; }

/* Keep the image card pinned on the right */
@media (min-width: 901px){
  .hero-grid--home .hero-media{
    justify-self: end;
    width: 100%;
    max-width: 560px; /* prevents it from feeling like it pushes into text */
  }
}

/* Make the hero image cover the whole card */
.hero-grid--home .hero-media{
  position: relative;
  overflow: hidden;
  min-height: 440px !important;
  border-radius: 22px; /* keep consistent with main.css */
}

.hero-grid--home .hero-media > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile (stack vertically) */
@media (max-width: 900px){
  .hero-grid--home{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .hero-grid--home .hero-media{
    min-height: 340px !important;
    max-width: none;
    justify-self: stretch;
  }
}