rborst Upon reviewing closely, The media query css I have suggested is being applied however, You would require to make changes for screen size value with changing px value in min-device-width: 375px and max-device-width: 667px accordingly to get it right for certain breakpoints
You may kindly refer to forum post here which elaborates on making changes for certain breakpoints as per responsive sizes
Also, This tutorial can help in getting the comprehensive list of media queries for varied devices