.wm2-looks {
  --wm2-looks-motion-fast: 180ms;
  --wm2-looks-motion-image: 420ms;

  position: relative;
  margin-bottom: 64px;
  color: var(--wm2-ink);
  font-family: var(--wm2-font);
  font-synthesis: none;
  overflow: hidden;
}

.wm2-looks *,
.wm2-looks *::before,
.wm2-looks *::after {
  box-sizing: border-box;
}

.wm2-looks__container {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
}

.wm2-looks__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 34px;
  gap: 24px;
}

.wm2-looks__eyebrow {
  margin: 0 0 12px;
  color: var(--wm2-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.wm2-looks__title {
  margin: 0;
  color: var(--wm2-ink);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.wm2-looks__all-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  gap: 10px;
  border-bottom: 1px solid var(--wm2-line);
  color: var(--wm2-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color var(--wm2-looks-motion-fast) ease,
    color var(--wm2-looks-motion-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.wm2-looks__all-arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--wm2-looks-motion-fast) ease;
}

.wm2-looks__all-link:focus,
.wm2-looks__group-tab:focus,
.wm2-looks__filter:focus,
.wm2-looks__card-link:focus,
.wm2-looks__cards-viewport:focus {
  outline: none;
}

.wm2-looks__all-link:focus-visible,
.wm2-looks__group-tab:focus-visible,
.wm2-looks__filter:focus-visible {
  outline: 2px solid var(--wm2-accent);
  outline-offset: 4px;
}

.wm2-looks__group-nav {
  display: flex;
  width: 100%;
  margin-bottom: 22px;
  gap: 28px;
  border-bottom: 1px solid var(--wm2-line);
}

.wm2-looks__group-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 40px;
  padding: 0 0 13px;
  color: var(--wm2-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--wm2-looks-motion-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.wm2-looks__group-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--wm2-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition:
    opacity var(--wm2-looks-motion-fast) ease,
    transform var(--wm2-looks-motion-fast) var(--wm2-ease);
}

.wm2-looks__group-tab.is-selected {
  color: var(--wm2-ink);
}

.wm2-looks__group-tab.is-selected::after {
  opacity: 1;
  transform: scaleX(1);
}

.wm2-looks__panel + .wm2-looks__panel {
  margin-top: 64px;
}

.wm2-looks.is-enhanced .wm2-looks__panel + .wm2-looks__panel {
  margin-top: 0;
}

.wm2-looks.is-enhanced .wm2-looks__panel[hidden],
.wm2-looks__card[hidden] {
  display: none;
}

.wm2-looks__filters {
  display: flex;
  align-items: center;
  width: calc(100% + (100vw - 100%) / 2);
  margin-bottom: 30px;
  padding: 0 0 2px;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}

.wm2-looks__filters::-webkit-scrollbar,
.wm2-looks__cards-viewport::-webkit-scrollbar {
  display: none;
}

.wm2-looks__filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  min-height: 36px;
  padding: 8px 11px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--wm2-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition:
    border-color var(--wm2-looks-motion-fast) ease,
    color var(--wm2-looks-motion-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.wm2-looks__filter:first-child {
  padding-left: 0;
}

.wm2-looks__filter.is-active {
  border-color: var(--wm2-line);
  color: var(--wm2-ink);
}

.wm2-looks__filter:first-child.is-active {
  padding-left: 11px;
}

.wm2-looks__filter-count {
  color: var(--wm2-muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  vertical-align: super;
}

.wm2-looks__cards-viewport {
  width: calc(100% + (100vw - 100%) / 2);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}

.wm2-looks__cards-viewport:focus-visible {
  outline: 2px solid var(--wm2-accent);
  outline-offset: -2px;
}

.wm2-looks__cards {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.wm2-looks__card {
  flex: 0 0 min(286px, calc(100vw - 52px));
  width: min(286px, calc(100vw - 52px));
  min-width: 0;
  scroll-snap-align: start;
}

.wm2-looks__card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.wm2-looks__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 135 / 290;
  background: var(--wm2-image-surface);
  border-radius: var(--wm2-media-radius);
  overflow: hidden;
  transition: box-shadow var(--wm2-looks-motion-fast) ease;
}

.wm2-looks__card-link:focus-visible .wm2-looks__media {
  box-shadow: inset 0 0 0 2px var(--wm2-accent);
}

.wm2-looks__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  transition: transform var(--wm2-looks-motion-image) var(--wm2-ease);
  -webkit-user-drag: none;
}

.wm2-looks__media--placeholder {
  background:
    linear-gradient(135deg, transparent 0 49.85%, var(--wm2-line) 50% 50.15%, transparent 50.3%),
    var(--wm2-image-surface);
}

.wm2-looks__placeholder-text {
  max-width: 140px;
  color: var(--wm2-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.wm2-looks__card-copy {
  display: block;
  padding-top: 16px;
}

.wm2-looks__card-context,
.wm2-looks__card-id,
.wm2-looks__description {
  display: block;
}

.wm2-looks__card-context {
  margin-bottom: 7px;
  color: var(--wm2-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.wm2-looks__card-id {
  color: var(--wm2-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  transition: color var(--wm2-looks-motion-fast) ease;
}

.wm2-looks__description {
  margin-top: 10px;
  color: var(--wm2-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.wm2-looks__status,
.wm2-looks__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wm2-looks__empty {
  color: var(--wm2-muted);
  font-size: 14px;
  line-height: 1.6;
}

.wm2-looks__empty p {
  margin: 0 0 12px;
}

.wm2-looks__empty a {
  color: var(--wm2-ink);
  font-weight: 600;
  text-decoration-color: var(--wm2-accent);
  text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .wm2-looks__all-link:hover,
  .wm2-looks__group-tab:hover:not(.is-selected),
  .wm2-looks__filter:hover:not(.is-active),
  .wm2-looks__empty a:hover {
    color: var(--wm2-accent);
  }

  .wm2-looks__all-link:hover {
    border-color: var(--wm2-accent);
  }

  .wm2-looks__all-link:hover .wm2-looks__all-arrow {
    transform: translateX(3px);
  }

  .wm2-looks__card-link:hover .wm2-looks__image {
    transform: scale(1.012);
  }

  .wm2-looks__card-link:hover .wm2-looks__card-id {
    color: var(--wm2-accent);
  }
}

@media (min-width: 393px) {
  .wm2-looks__container {
    width: 383px;
  }
}

@media (min-width: 340px) and (max-width: 639px) {
  .wm2-looks__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (min-width: 640px) {
  .wm2-looks__container {
    width: 620px;
  }

  .wm2-looks__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 42px;
  }

  .wm2-looks__title {
    font-size: 48px;
  }

  .wm2-looks__group-nav {
    margin-bottom: 28px;
  }

  .wm2-looks__filters {
    margin-bottom: 36px;
  }

  .wm2-looks__cards {
    gap: 20px;
  }

  .wm2-looks__card {
    flex-basis: 292px;
    width: 292px;
  }

  .wm2-looks__card-copy {
    padding-top: 18px;
  }

  .wm2-looks__description {
    font-size: 13px;
  }
}

@media (min-width: 980px) {
  .wm2-looks {
    margin-bottom: 100px;
  }

  .wm2-looks__container {
    width: 960px;
  }

  .wm2-looks__header {
    margin-bottom: 56px;
  }

  .wm2-looks__eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
  }

  .wm2-looks__title {
    font-size: 60px;
  }

  .wm2-looks__all-link {
    min-height: 36px;
    font-size: 14px;
  }

  .wm2-looks__group-nav {
    margin-bottom: 34px;
    gap: 36px;
  }

  .wm2-looks__group-tab {
    min-height: 44px;
    padding-bottom: 15px;
    font-size: 16px;
  }

  .wm2-looks__filters {
    width: 100%;
    margin-bottom: 44px;
    gap: 12px;
    overflow: visible;
  }

  .wm2-looks__filter {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .wm2-looks__filter:first-child.is-active {
    padding-left: 13px;
  }

  .wm2-looks__cards-viewport {
    width: 100%;
    overflow: visible;
  }

  .wm2-looks__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 380px));
    justify-content: center;
    width: 100%;
    gap: 52px 24px;
  }

  .wm2-looks__card {
    width: auto;
  }

  .wm2-looks__card-context {
    font-size: 10px;
  }

  .wm2-looks__card-id {
    font-size: 14px;
  }

  .wm2-looks__description {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.65;
  }
}

@media (min-width: 1440px) {
  .wm2-looks {
    margin-bottom: 140px;
  }

  .wm2-looks__container {
    width: 1240px;
  }

  .wm2-looks__header {
    margin-bottom: 64px;
  }

  .wm2-looks__title {
    font-size: 72px;
  }

  .wm2-looks__group-tab {
    font-size: 17px;
  }

  .wm2-looks__filters {
    margin-bottom: 52px;
  }

  .wm2-looks__cards {
    column-gap: 32px;
  }

  .wm2-looks__card-copy {
    padding-top: 20px;
  }

  .wm2-looks__card-id {
    font-size: 15px;
  }

  .wm2-looks__description {
    font-size: 14px;
  }
}

@media (min-width: 1600px) {
  .wm2-looks__container {
    width: 1460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm2-looks {
    --wm2-looks-motion-fast: 0ms;
    --wm2-looks-motion-image: 0ms;
  }

  .wm2-looks__cards-viewport {
    scroll-behavior: auto;
  }
}
