/* ==========================================================
   Ancient Collection — three-look layout
   Load AFTER style-ancient.css. Scoped to .aw-collection--three
   so the original five-card layout is untouched elsewhere.
   ========================================================== */

/* Body: cards take all free space, side note stays its natural width */
.aw-collection--three .aw-collection-body {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 3vw, 48px);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-right: 0;              /* remove any space reserved for the old 5-card track / side note */
}

/* Side note: sits in the flow beside the cards, not floating in its own gap */
.aw-collection--three .aw-side-note {
  position: static;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  width: auto;
  max-width: 160px;
  transform: none;
}

/* Track must not keep a fixed width / right padding from the 5-card design */
.aw-collection--three .aw-track {
  width: auto;
  max-width: none;
  padding-right: 0;
  margin-right: 0;
}

/* Desktop / tablet: three equal columns that fill the row */
@media (min-width: 768px) {
  .aw-collection--three .aw-track {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 36px);
    overflow: visible;
    transform: none !important;      /* stop any leftover slide offset */
  }

  .aw-collection--three .aw-look {
    flex: none;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .aw-collection--three .aw-look-media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .aw-collection--three .aw-look-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Nothing left to scroll to, so the arrows are redundant */
  .aw-collection--three .aw-arrows {
    display: none;
  }
}

/* Mobile: keep the swipeable strip, one card at a time */
@media (max-width: 767.98px) {
  .aw-collection--three .aw-collection-body {
    flex-direction: column;
  }

  .aw-collection--three .aw-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
  }

  .aw-collection--three .aw-look {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}
