/* Built using Hyperiux Vault: https://vault.hyperiux.com
 * interactive-list-preview, vanilla port. MPL 2.0 — keep this header. */

[data-list-preview] {
  --lp-bg: #171717;
  --lp-fg: #fff;
  --lp-active-fg: #000;
  --lp-highlight: #fff;
  --lp-cols: 20% 20% 20% 40%;       /* one value per cell in a row */
  --lp-img-w: 19.5rem;              /* × data-image-size */
  --lp-img-h: 22.5rem;
  --lp-img-left: 35%;
  --lp-smooth: .35s;                /* data-smoothness */
  --lp-dur: .6s;                    /* data-duration */
  position: relative;
  width: 100%;
  background: var(--lp-bg);
  color: var(--lp-fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lp-row {
  display: grid;
  grid-template-columns: var(--lp-cols);
  position: relative;
  z-index: 30;
  color: inherit;
  text-decoration: none;
  transition: color var(--lp-smooth) cubic-bezier(.33,1,.68,1);
}
.lp-row > :not(.lp-thumb) {
  padding: 12px 24px;
  font-size: 12px;
  line-height: 1.33;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-row.is-active { color: var(--lp-active-fg); }
.lp-row:focus-visible { outline: 2px solid var(--lp-highlight); outline-offset: -2px; }
.lp-thumb { display: none; }

.lp-highlight {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 0;
  background: var(--lp-highlight);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--lp-smooth) cubic-bezier(.33,1,.68,1),
    height var(--lp-smooth) cubic-bezier(.33,1,.68,1),
    opacity var(--lp-smooth) cubic-bezier(.33,1,.68,1);
}
.lp-images {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}
.lp-img {
  position: absolute;
  left: var(--lp-img-left);
  top: 50%;
  width: calc(var(--lp-img-w) * var(--lp-size, 1));
  height: calc(var(--lp-img-h) * var(--lp-size, 1));
  translate: 0 -50%;
  visibility: hidden;
  clip-path: inset(50%);
  will-change: clip-path, opacity;
}
.lp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Below 1024px, or on touch screens: stacked rows with the image beside the text */
@media (max-width: 1023px), (hover: none) {
  .lp-highlight, .lp-images { display: none; }
  .lp-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 16px 52% 16px 16px;
    min-height: 30vh;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .lp-row > :not(.lp-thumb) { padding: 0; white-space: normal; font-size: 18px; letter-spacing: .1em; }
  .lp-row > :first-child { font-weight: 700; }
  .lp-row > :nth-child(n+2):not(.lp-thumb) { opacity: .6; font-size: 16px; text-transform: none; letter-spacing: .02em; }
  .lp-row > :empty { display: none; }
  .lp-thumb { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
  .lp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
}
@media (max-width: 767px) {
  .lp-row > :not(.lp-thumb) { font-size: 14px; }
  .lp-row > :nth-child(n+2):not(.lp-thumb) { font-size: 12px; }
}
