/* Native touch scrolling also works before enhancement loads. */
.snap-group { display: contents; }
.snap-controls { display: none; }

@media (max-width: 700px) {
  .snap-group {
    display: block;
    min-width: 0;
    max-width: 100%;
  }

  .tm-menu .tm-cards,
  #tm-vitrin .tm-cards,
  .coffee-pictures,
  .street-pictures,
  .bakery-spread {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 5px 4px 8px;
    scrollbar-width: thin;
    scrollbar-color: currentColor transparent;
  }
  .snap-group .snap-track { scrollbar-width: none; }
  .snap-group .snap-track::-webkit-scrollbar { display: none; }

  .tm-cards > .tm-card,
  #tm-vitrin .tm-card:first-child,
  .coffee-pictures > img,
  .street-pictures > img,
  .bakery-spread > img {
    flex: 0 0 85%;
    min-width: 0;
    width: 85%;
    margin: 0;
    scroll-snap-align: start;
  }
  #tm-vitrin .tm-card:nth-child(2) { margin-top: 0; }
  #tm-vitrin .tm-card figcaption {
    padding: .85rem 3rem .85rem .8rem;
  }
  #tm-vitrin .tm-card .tm-product { font-size: clamp(1.4rem, 6vw, 1.85rem); }
  #tm-vitrin .tm-card-trigger::after { bottom: .8rem; }
  .tm-frame { aspect-ratio: 1.42; }
  .tm-card-trigger:focus-visible { outline-offset: 0; }

  .coffee-pictures > img, .street-pictures > img, .bakery-spread > img {
    height: auto;
    aspect-ratio: 4 / 4.5;
    transform: none;
    border: 0;
  }
  .street-pictures .story-tag { left: .65rem; bottom: 1.15rem; }
  .snap-group-bakery { width: var(--wrap); margin: 0 auto clamp(3rem, 6vw, 6rem); }
  .snap-group-bakery .bakery-spread { width: 100%; margin: 0; }

  .snap-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    margin: .4rem 4px 0;
  }
  .snap-controls::before {
    content: "";
    flex: 1;
    margin-right: .6rem;
    height: 1px;
    background: currentColor;
    opacity: .3;
  }
  .snap-position {
    margin-right: .35rem;
    font: 750 .78rem/1 var(--sans);
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
  }
  .snap-controls button {
    width: 2.75rem;
    height: 2.75rem;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
  }
  .snap-controls button:disabled { opacity: .32; cursor: default; }
  .snap-controls button:focus-visible, .snap-track:focus-visible { outline-color: currentColor; }
  .snap-controls button:active:not(:disabled) { background: var(--butter); color: var(--ink); }
  .coffee-copy .button { flex-shrink: 0; }
}
