
.ratio-9x16 {
  aspect-ratio: 9 / 16;
  width: 100%;
  /* max-width: 50rem; */
  height: 550px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ratio-9x16 iframe {
    /* padding-top: 50px; */
  width: auto;
  height: 100%;
  border: 0;
}
/* PEA features 60/40 split: left takes 60% of viewport width, right takes 40% */
.pea-features-row {
  display: block; /* default stacking on mobile */
}


@media (min-width: 992px) {
  .pea-features-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  /* Use percentages relative to the container so the columns fit inside the container width */
  .pea-features-left {
    -ms-flex: 0 0 60%;
    flex: 0 0 60% !important;
    max-width: 60% !important;
    width: 60% !important;
    min-width: 0; /* prevents child overflow collapsing layout */
    box-sizing: border-box;
  }

  .pea-features-right {
    -ms-flex: 0 0 40%;
    flex: 0 0 40% !important;
    max-width: 40% !important;
    width: 40% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-width: 0;  */
    box-sizing: border-box;
  }

  /* Make sure the video fills the right column using object-fit */
  .pea-features-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 60vh;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
  }
}

/* Small screen fallback */
.pea-features-right {
  width: 100%;
}
.pea-features-right .pea-features-video {
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
}
 