/* Portrait catalogue photographs: scoped to front/side gate choices only.
   Contain preserves the complete photograph and the SVG colour masks. */
.fcgs .fcgs-types .fcgs-portrait-category > .fcgs-card-art {
  display: block;
  width: 100%;
  height: 310px;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: #f5f6f5;
}
.fcgs .fcgs-cards.fcgs-portrait-designs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  align-items: stretch;
}
.fcgs .fcgs-portrait-designs .fcgs-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 260px;
  max-height: 420px;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  background: #f5f6f5;
}
.fcgs .fcgs-portrait-category .fcgs-card-art > img,
.fcgs .fcgs-portrait-category .fcgs-card-art > svg,
.fcgs .fcgs-portrait-designs .fcgs-card-art > img,
.fcgs .fcgs-portrait-designs .fcgs-card-art > svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
  padding: 0;
}
/* Keep the original schematic drawing inset, without reducing photographs. */
.fcgs .fcgs-portrait-designs .fcgs-card-art > svg.fcgs-gate {
  padding: 12px;
}
@container fcgs (max-width: 720px) {
  .fcgs .fcgs-types .fcgs-portrait-category > .fcgs-card-art { height: 360px; }
}
@media (max-width: 720px) {
  .fcgs .fcgs-types .fcgs-portrait-category > .fcgs-card-art { height: 360px; }
}
