New to Angular Material, trying to make a page with some cards that have photos but it seems the default layout for mat-card is that they stack vertically and don't fill out the space in the row to the right. I've tried wrapping the cards in a div with about a half dozen varieties of flex layouts, none of which have had any effect.
<mat-card
*ngFor="let photo of photos_brazil">
<mat-card-header>
<mat-card-title>{{photo.title}}</mat-card-title>
<mat-card-subtitle>{{photo.subTitle}}</mat-card-subtitle>
</mat-card-header>
<img mat-card-image src="{{photo.img_source_small}}" alt="{{photo.alt}}">
<mat-card-content>
<p>{{photo.content}}</p>
</mat-card-content>
</mat-card>
mat-card {
max-width: 410px;
margin: 1rem;
}
