/* The same market links become a compact directory on the mobile homepage. */
@media screen and (max-width: 1024px) {
  .buyer-home main > #markets.market-showcase {
    padding: 1.75rem clamp(1rem, 4vw, 2rem) 2rem;
  }

  .buyer-home #markets .section-head {
    display: block;
    margin: 0 0 1.25rem;
  }

  .buyer-home #markets .section-head > p,
  .buyer-home #markets .market-showcase-footer,
  .buyer-home #markets .market-card-top,
  .buyer-home #markets .market-card-bottom,
  .buyer-home #markets .market-story-line,
  .buyer-home #markets .market-story-card::before {
    display: none;
  }

  .buyer-home #markets .market-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
    gap: 1rem .5rem;
  }

  .buyer-home #markets .market-story-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .4rem;
    min-height: 44px;
    padding: .15rem 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    text-align: center;
  }

  .buyer-home #markets .market-story-card > img {
    position: static;
    align-self: center;
    flex: none;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 1px solid #74818a;
    object-fit: cover;
    opacity: 1;
  }

  .buyer-home #markets .market-story-card h3 {
    align-self: stretch;
    margin: 0;
    color: #fff;
    font-size: .875rem;
    font-family: Inter, Arial, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.2;
    letter-spacing: -.015em;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }

  .buyer-home #markets .market-story-card:is(:hover, :focus-visible) > img {
    border-color: var(--sla-red);
  }
}

@media screen and (min-width: 701px) and (max-width: 1024px) {
  .buyer-home #markets .market-story-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media screen and (min-width: 370px) and (max-width: 410px) {
  .buyer-home main > #markets.market-showcase { padding-inline: .625rem; }
  .buyer-home #markets .market-story-grid { column-gap: .3rem; }
}
