/* Portfolio portrait grids. Existing brief and site styles remain separate. */
.character-gallery {
  gap: 12px;
}

.character-gallery--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.character-gallery--full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.character-gallery figure {
  overflow: hidden;
  border: 1px solid var(--b);
  border-radius: 5px;
  background: var(--s);
}

.character-gallery img {
  aspect-ratio: 400 / 376;
  border-radius: 0;
}

.character-gallery figcaption {
  display: block;
  padding: 8px 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.character-gallery figcaption a {
  display: block;
  width: fit-content;
  margin-top: 4px;
  font-size: .78rem;
}

@media (max-width: 620px) {
  .character-gallery {
    gap: 8px;
  }

  .character-gallery--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-gallery figcaption {
    padding: 7px;
    font-size: .9rem;
  }

  .pin-showcase .btn {
    padding-inline: 16px;
    white-space: normal;
    text-align: center;
  }
}
