code: def bbox_horz_aligned(box1, box2):
      
      if not (box1 and box2):
          return False
      # NEW: any overlap counts
      #    return box1.top <= box2.bottom and box2.top <= box1.bottom
      box1_top = box1.top + 1.5
      box2_top = box2.top + 1.5
      box1_bottom = box1.bottom - 1.5
      box2_bottom = box2.bottom - 1.5
      return not (box1_top > box2_bottom or box2_top > box1_bottom)
docs: Returns true if the vertical center point of either span is within the
      vertical range of the other