Text this: Matching and positivity beyond minimal coupling in effective theories of photons and gravitons