.media-img-fallback {
    background-color: #f8f9fa;
    object-fit: contain !important;
}

/*
 * ASP.NET Core validation summaries render with the validation-summary-valid
 * class when there are no model errors. Bootstrap's alert styles still give
 * that empty element height/background, so create/edit pages show a blank red
 * strip. Keep the summary in the DOM for unobtrusive validation, but hide it
 * until it actually contains errors.
 */
.validation-summary-valid {
    display: none;
}
