#qzx-works {
  margin-block: 2rem;
  color: var(--color-base-content, inherit);
}

#qzx-works[hidden] {
  display: none;
}

#qzx-works ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

#qzx-works li {
  min-width: 0;
  padding: 0;
  margin: 0;
}

#qzx-works .work-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 44px;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: none;
}

#qzx-works .work-link img {
  display: block;
  width: 100%;
  max-height: 11rem;
  aspect-ratio: 2 / 1;
  margin: 0;
  border-radius: .35rem;
  background-color: var(--color-base-200, transparent);
  object-fit: contain;
}

#qzx-works .work-copy {
  display: grid;
  min-width: 0;
  gap: .25rem;
  padding-block: .7rem .25rem;
  overflow-wrap: anywhere;
}

#qzx-works strong {
  font-size: 1.07rem;
  line-height: 1.45;
}

#qzx-works .work-description {
  font-size: .95rem;
  line-height: 1.5;
  color: color-mix(in srgb, currentColor 80%, var(--color-base-100));
}

#qzx-works .work-link:is(:hover, :focus-visible) strong {
  text-decoration: underline;
  text-underline-offset: .23em;
}

#qzx-works .work-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 38rem) {
  #qzx-works ul {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  #qzx-works .work-link {
    flex-direction: row;
    align-items: center;
    gap: .85rem;
  }

  #qzx-works .work-link img {
    width: min(29%, 7rem);
    aspect-ratio: 8 / 5;
    flex: none;
  }

  #qzx-works .work-copy {
    padding-block: .3rem;
  }
}
