.story-page .prose:has(> .story-product) {
  display: flow-root;
}

.story-page .prose:has(> .story-product) :is(h2, h3) {
  clear: both;
}

.story-product {
  box-sizing: border-box;
  width: 186px;
  padding: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.story-product--left {
  float: left;
  margin: .25rem 1.25rem 1rem 0;
}

.story-product--right {
  float: right;
  margin: .25rem 0 1rem 1.25rem;
}

.story-product-image {
  display: block;
  background: #fff;
  border-radius: 4px;
}

.story-product-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 156px;
  object-fit: contain;
}

.story-product-copy {
  padding: .55rem .25rem .2rem;
  font-size: .95rem;
  line-height: 1.35;
}

.story-product-cta {
  font-weight: 700;
  text-underline-offset: 2px;
}

.story-product-copy small {
  display: block;
  margin-top: .25rem;
}

.story-product a:focus-visible {
  outline: 3px solid #0f60b6;
  outline-offset: 2px;
}

@media (max-width: 650px) {
  .story-product {
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    width: 100%;
    margin: 1rem 0;
  }

  .story-product-image img {
    max-height: 110px;
  }

  .story-product-copy {
    padding: 0;
  }
}

@media (max-width: 420px) {
  .story-product {
    grid-template-columns: minmax(0, 86px) minmax(0, 1fr);
  }
}
