/* Extra layout for the random generators index. Base cards come from /cards/index.css. */

/* Stop this page's grid from widening the shared header. Other pages do not load this file. */
.grid,
.topnav,
.mainCenter {
  min-width: 0;
  max-width: 100%;
}

.mainCenter {
  grid-area: main;
}

.lh-maker .lh-tool-line {
  margin: 0;
  color: #555;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.lh-maker .lh-samples {
  margin-bottom: 4px;
}

.lh-maker a.lh-sample h3 {
  margin: 0 0 6px;
}

.lh-maker .lh-preview-photo {
  position: absolute;
  inset: 0;
}

.lh-maker .lh-preview-photo img,
.lh-maker .lh-mini-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lh-maker .lh-mini-photo {
  overflow: hidden;
  padding: 0;
}

.lh-maker .lh-preview-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lh-maker .lh-preview-graphic svg {
  display: block;
  width: auto;
  height: 88px;
  max-width: 86%;
}

.lh-maker .lh-mini-card p {
  overflow-wrap: break-word;
}

.lh-maker .lh-mini-card p.is-word {
  font-size: 22px;
}

.lh-maker .lh-mini-card p.is-emoji {
  font-size: 40px;
  line-height: 1;
}

.lh-maker .lh-sample:nth-child(3n+1) .lh-mini-card {
  --mini-tilt: -2deg;
}

.lh-maker .lh-sample:nth-child(3n+2) .lh-mini-card {
  --mini-tilt: 1.5deg;
}

.lh-maker .lh-sample:nth-child(3n+3) .lh-mini-card {
  --mini-tilt: -0.8deg;
}

@media (min-width: 768px) {
  .lh-maker .lh-samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .lh-maker .lh-samples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
