.lbm-article-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  width: min(100%, 960px);
  margin: clamp(1.25rem, 3vw, 2.25rem) auto;
}

.lbm-article-buttons.count-1 {
  width: min(100%, 680px);
}

.lbm-article-button {
  width: 100%;
  margin: 0;
}

.lbm-article-button__link,
.lbm-article-button__message {
  display: block;
  width: 100%;
}

.lbm-article-button__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.lbm-article-button__link {
  border-radius: 0.25rem;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.lbm-article-button__link:hover {
  filter: brightness(1.07) drop-shadow(0 0 10px rgba(123, 119, 255, 0.44));
  transform: scale(1.012);
}

.lbm-article-button__link:focus-visible {
  outline: 2px solid #786ff2;
  outline-offset: 5px;
  filter: brightness(1.07) drop-shadow(0 0 10px rgba(123, 119, 255, 0.44));
}

.lbm-article-button.is-message .lbm-article-button__image {
  cursor: default;
}

.lbm-article-button__art {
  position: relative;
  display: block;
  width: 100%;
  container-type: inline-size;
}

.lbm-article-button__text {
  position: absolute;
  left: 50%;
  /* The label's visible glyphs sit below the line box center; compensate
     against the actual blue field of the supplied MASTER. */
  top: calc(var(--lbm-top, 50%) - 5%);
  transform: translate(-50%, -50%);
  width: var(--lbm-text-width, 62%);
  max-width: var(--lbm-text-width, 62%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: var(--lbm-font, inherit);
  font-size: clamp(10px, 5cqw, var(--lbm-size, 32px));
  font-weight: var(--lbm-weight, 700);
  line-height: 1.2;
  color: var(--lbm-color, #fff);
  text-shadow: 0 1px 4px #08021e, 0 0 7px #08021e;
  pointer-events: none;
}

@media (max-width: 600px) {
  .lbm-article-buttons {
    grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
    margin-block: 1rem;
  }

  .lbm-article-buttons.has-master {
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lbm-article-button__link {
    transition: none;
  }

  .lbm-article-button__link:hover {
    transform: none;
  }
}
