.app-rawitem-image{ margin: auto; height: 100%; >img{ width: auto; height: 100%; max-width: 100%; height: 360px; object-fit: contain; } }